help with nginx rewrite rules (full friendly URLs) for use in Ubuntu 20.04/Plesk?

zoldos

Well-known member
I switched to only nginx for my server (by turning off Apache Proxy mode). But full friendly URLs no longer work, since I can't seem to use .htaccess in this mode.

However, I did see a section in Plesk for nginx directives where I can add nginx specific rewrite rules to make my site friendly again. What are these rules? I tried it myself after googling quite a bit, but the solutions I found were a bit ambiguous. lol

Thanks!
 
Where do I put those rules? I tried them in "Additional nginx directives" in Plesk, restarted nginx, enabled friendly URLs, and it doesn't work. 404 error on any page besides home. I changed /xf/ to /httpdocs/ .....
 
Hey,
where did you config the nginx rule ? I am but confused here, just moved to plesk 2 days back and looking for using nginx cache.
Sure bud. Go to your domain's Plesk page. Look for "Hosting & DNS". Click it. Then click "Apache & ngnix". You'll see a bunch of options. To enter your own ngnix rules, scroll to the bottom of page, and look for "Additional nginx directives". Be careful, sometimes it won't override server wide settings. Also, turn OFF "Proxy Mode" to completely disable Apache and use just ngnix.

If you need any other help, hit me up!
 
Sure bud. Go to your domain's Plesk page. Look for "Hosting & DNS". Click it. Then click "Apache & ngnix". You'll see a bunch of options. To enter your own ngnix rules, scroll to the bottom of page, and look for "Additional nginx directives". Be careful, sometimes it won't override server wide settings. Also, turn OFF "Proxy Mode" to completely disable Apache and use just ngnix.

If you need any other help, hit me up!
Ok, thanks.
I will check and update on it here .
 
Also, if you just want to use ngnix cache, you can enable that on the same page and it shouldn't require further setup.
 
Back
Top Bottom