Kubernetes/srcs/nginx/nginx.conf
2021-03-08 21:08:19 +03:00

36 lines
633 B
Nginx Configuration File
Executable File

events {}
http {
server {
listen 80 default_server;
error_log logs/error.log debug;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
server_name www;
root /var/www/localhost/htdocs/;
index index.html;
ssl_certificate /etc/nginx/ssl/html.pem;
ssl_certificate_key /etc/nginx/ssl/html.key;
location /wordpress {
return 307 https://$host:5050/;
}
location = ^(/phpmyadmin)$ {
proxy_pass https://$host/$1;
}
location /phpmyadmin {
proxy_pass https://$host:5000/;
proxy_redirect /index.php /phpmyadmin/index.php;
}
}
}