Edit avatar error with Apache + Nginx configration

kevaketa

Member
Hello all,

I am running Apache with nginx and the 'friendly url' option is turned on.

Now the problem is when I click edit avatar I am getting this error in my browser console. --> https://ibb.co/e9iZ77

In apache with nginx If I turn off 'friendly url' then edit avatar is working.
If I switch Apache with nginx to only apache and 'friendly url' is on then also edit avatar is working.


I also tried to apply the code for Ngix which is mentioned on this link : https://xenforo.com/help/friendly-urls/

I am using plesk panel and the code for Nginx for friendly url I putted in Additional nginx directives option in plesk panel.

the xenforo is installed in root directory.

but when I try to save that code I am getting another error :
Invalid nginx configuration: nginx: [emerg] duplicate location "/" in /var/www/vhosts/system/xyz.com/conf/vhost_nginx.conf:23 nginx: configuration file /etc/nginx/nginx.conf test failed

Xenforo support team told me the request is not being passed correctly to Apache by Nginx is causing this error.

I tried to search on internet and also in xenforo forum but unable to find solution.

If any Apache & Nginx expert is there please help.
 
I have never used plesk, and only use NGINX as the primary HTTP server, but find if there is a try_files stanza in the nginx config file and see if it's similar to try_files $uri $uri/ /index.php?$args;
 
Last edited:
Top Bottom