WordPress/Nginx Config
WordPress/Nginx Config
Does anyone know if the nginx rules have changed for the ubuntu version?
On CentOS WordPress url rewriting worked out of the box. On Ubuntu I just can't appear to get any of the rewrites to work, always results in a 404 error.
On CentOS WordPress url rewriting worked out of the box. On Ubuntu I just can't appear to get any of the rewrites to work, always results in a 404 error.
Re: WordPress/Nginx Config
Seems like this might be useful for you: http://codex.wordpress.org/NginxGraham wrote:Does anyone know if the nginx rules have changed for the ubuntu version?
On CentOS WordPress url rewriting worked out of the box. On Ubuntu I just can't appear to get any of the rewrites to work, always results in a 404 error.
This one's more geared towards Ubuntu-based servers, which might work better for you. Let us know how it goes?
Re: WordPress/Nginx Config
Thanks Keiro, have tried a few of the config changes there. Absolutely no luck so far.KeiroD wrote:Seems like this might be useful for you: http://codex.wordpress.org/NginxGraham wrote:Does anyone know if the nginx rules have changed for the ubuntu version?
On CentOS WordPress url rewriting worked out of the box. On Ubuntu I just can't appear to get any of the rewrites to work, always results in a 404 error.
This one's more geared towards Ubuntu-based servers, which might work better for you. Let us know how it goes?
After 19 hours it just doesn't look like I'm going to be able to get Vesta to support WordPress with URL rewriting on Ubuntu. I'm just starting to get frustrated now.
I've even tried running all of the forum posts that mention Wordpress through Google translate to see if there's any clues there.
Re: WordPress/Nginx Config
Hmm. I'll take a crack at it and let you know how it goes. I'll be playing with it shortly here.Graham wrote:Thanks Keiro, have tried a few of the config changes there. Absolutely no luck so far.KeiroD wrote:Seems like this might be useful for you: http://codex.wordpress.org/NginxGraham wrote:Does anyone know if the nginx rules have changed for the ubuntu version?
On CentOS WordPress url rewriting worked out of the box. On Ubuntu I just can't appear to get any of the rewrites to work, always results in a 404 error.
This one's more geared towards Ubuntu-based servers, which might work better for you. Let us know how it goes?
After 19 hours it just doesn't look like I'm going to be able to get Vesta to support WordPress with URL rewriting on Ubuntu. I'm just starting to get frustrated now.
I've even tried running all of the forum posts that mention Wordpress through Google translate to see if there's any clues there.
Re: WordPress/Nginx Config
Best of luck, I'll have another go in the morning.KeiroD wrote:Hmm. I'll take a crack at it and let you know how it goes. I'll be playing with it shortly here.
Re: WordPress/Nginx Config
Gotcha.Graham wrote:Best of luck, I'll have another go in the morning.KeiroD wrote:Hmm. I'll take a crack at it and let you know how it goes. I'll be playing with it shortly here.
Interestingly... shorturls/url rewriting seems to work... at least, for the admin side, but not for the front-end. I wonder why? The error logs aren't displaying anything that I can see... however, I did notice this: When the short-url fails, it fails at the Apache2 side, not at the nginx side, so I suspect it's more an apach2 configuration on my end.
Still testing...
Edit: Got rewrites working perfectly.
Here's what I did:
Set up WordPress, install the nginx helper plugin (for shiggles, really, will uninstall shortly to see if it works regardless), then finally, I did: a2enmod rewrite in SSH for apache2 to enable rewrites.
Worked perfectly for me.
Edit2: Works with the plugin deactivated and deleted, as well. Nice!
Re: WordPress/Nginx Config
Graham, I will check this later today. Please give more details on how to reproduce it. I mean WP module/plugin name. Some urls and so on.
Re: WordPress/Nginx Config
Hi skid,skid wrote:Graham, I will check this later today. Please give more details on how to reproduce it. I mean WP module/plugin name. Some urls and so on.
I'm not using any WP modules, I wanted to make sure URL rewriting was working first.
I'll pm you some further details if it'll help.
Thanks
Re: WordPress/Nginx Config
I found the reason. Apache rewrite module is disabled by default.
Here is how you can enable it
Here is how you can enable it
Code: Select all
a2enmod rewrite
service apache2 restart
Re: WordPress/Nginx Config
thanks for that skid. I'd already tried both and no change, WP url rewrite still result in a 404 error.skid wrote:I found the reason. Apache rewrite module is disabled by default.
Here is how you can enable itCode: Select all
a2enmod rewrite service apache2 restart
I just tried it again to be sure and same problem. Is there something else I'm missing?