I'm trying to put amuleweb behind a Nginx server in order to have SSL in front of it. I have a letsencrypt certificate and a duckdns.org domain.
The server works flawlessy if accessed directly by ip and port.
When I try to access going through nginx I get to the login page, but when I pass thet I get error 404 on
https://myserver.duckdns.org/amuleweb-main-dload.phpI tried a lot of nginx configurations but i really can't solve the issue.
This is my most recent nginx.conf file.
Can anybody give me advice, please?
Thank you in advance.
upstream amule {
server 127.0.0.1:4711;
keepalive 4;
}
server {
root /var/www;
index index.php index.html index.htm index.nginx-debian.html;
server_name myserver.duckdns.org;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass
http://amule/; proxy_redirect default;
}
location ~ \.php(?:$|/) {
include snippets/fastcgi-php.conf;
fastcgi_pass php;
}
listen [::]:443 ssl ipv6only=on; # managed by Certbot
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/myserver.duckdns.org/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/myserver.duckdns.org/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}