aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: amule and nginx  (Read 1364 times)

Tarrasque

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 2
amule and nginx
« on: February 05, 2021, 06:57:56 PM »

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.php

I 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


}
Logged