36 lines
656 B
Nginx Configuration File
Executable File
36 lines
656 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://192.168.99.150:5000/$1;
|
|
}
|
|
|
|
location /phpmyadmin {
|
|
proxy_pass https://192.168.99.150:5000/;
|
|
proxy_redirect /index.php /phpmyadmin/index.php;
|
|
}
|
|
}
|
|
} |