Welcome Guest. Please Login or Register  


You are here: Index > Webuzo > General Support > Topic : Nginx proxy wordpress permalinks



Threaded Mode | Print  

 Nginx proxy wordpress permalinks (8 Replies, Read 17115 times)
Deggimatt
Group: Member
Post Group: Newbie
Posts: 4
Status:
Hi. Wordpress permalinks work perfectly on apache2 but once nginx proxy is enabled, the permalinks lead to 404 pages. How can this be fixed?
IP: --   

Nginx proxy wordpress permalinks
nikhil89
Group: Softaculous Team
Post Group: Elite Member
Posts: 467
Status:
Hi,

This normally happens because of the .htaccess present in your installation.

Try visiting the permalinks by renaming the .htaccess file to _.htaccess, it should work fine.

If it works fine, try checking the .htaccess code in the file in again rename the file back to .htaccess.

Hope this helps. Please let us know if you need any further information. We will be happy to help you.
IP: --   

Nginx proxy wordpress permalinks
Deggimatt
Group: Member
Post Group: Newbie
Posts: 4
Status:
This does not work.

Can you please provide me with a working wordpress permalinks config file for Nginx?
IP: --   

Nginx proxy wordpress permalinks
nikhil89
Group: Softaculous Team
Post Group: Elite Member
Posts: 467
Status:
Hi,

Can you set the settings for Permalinks from the WordPress Admin Panel -> Settings -> Permalinks

Select your settings and save it. If you have 'suPHP' enabled on your server the WordPress will automatically write the configuration file or else you will have to manually make the changes.

Hope this helps.

If you still face the issue, please open a support ticket here and we shall look into the same:
http://softaculous.com/support/

Edited by nikhil89 : November 6, 2015, 9:58 am
IP: --   

Nginx proxy wordpress permalinks
Deggimatt
Group: Member
Post Group: Newbie
Posts: 4
Status:
suPHP is only available on Apache. On NGINX there is SPDY. However they do not fix the issue of the rewrite rules of Nginx on a wordpress site.
IP: --   

Nginx proxy wordpress permalinks
nikhil89
Group: Softaculous Team
Post Group: Elite Member
Posts: 467
Status:
Hi,

When you set Apache as Nginx proxy from Webuzo End-User Panel -> Configuration -> Nginx Settings you can enable suPHP.

Please let us know if you need any further information. We will be happy to help you.
IP: --   

Nginx proxy wordpress permalinks
CosmicDebri
Group: Member
Post Group: Newbie
Posts: 21
Status:
So, does that mean you have to run both Nginx and Apache if you want to run Wordpress sites?? Isn't there a way to run nginx only with wordpress?
IP: --   

Nginx proxy wordpress permalinks
Deggimatt
Group: Member
Post Group: Newbie
Posts: 4
Status:
you can. Use this config for WordPress:


#ignored: "-" thing used or unknown variable in regex/rew
if (!-f $request_filename){
    set $rule_1 1$rule_1;
}
if (!-d $request_filename){
    set $rule_1 2$rule_1;
}
if ($rule_1 = "21"){
    rewrite /. /index.php last;
}
IP: --   

Nginx proxy wordpress permalinks
CosmicDebri
Group: Member
Post Group: Newbie
Posts: 21
Status:
Thanks for the quick reply.

Not long after I posted that, I found the place to add extra configuration rules for domains, and I added this one which seems to work so far:

location / {
        try_files $uri $uri/ /index.php?q=$uri&$args;
    }

Is that an older way, a better or worse way, or just a different way??

IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is April 19, 2024, 10:48 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.027