Here is my Nginx config:
Code: Select all
## thisismywebsite
server {
listen *:443 ssl;
# return 301 https://thisismywebsite.fun$request_uri;
ssl_certificate /etc/ssl/keyhelp/letsencrypt/myusername/thisismywebsite.fun/cert.pem;
ssl_certificate_key /etc/ssl/keyhelp/letsencrypt/myusername/thisismywebsite.fun/private.pem;
server_name thisismywebsite.fun;
root /home/users/myusername/www/thisismywebsite/;
access_log /var/log/nginx/thisismywebsite.access.log;
# Static contents
location ~* ^.+.(jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js)$ {
expires max;
}
# Dynamic content, forward to Apache
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_pass http://127.0.0.1:8080;
}
}
https://prnt.sc/t9zsgw
To fix this, I'll change the keyhelp and ports.conf port to the default, this would fix the panel, but Nginx won't be able to serve as a reverse proxy for SSL contents, any fix for this?
This is currently the issue holding me back from using this wonderful panel, would be glad if someone could point me to the right direction.