Nginx & Wordpress
May 23, 2013 06:46PM

I'm having a hard time with nginx & wordpress. Specifically I installed/configured WP on and all seems to be ok EXCEPT for the fact that in the wp-admin/ I can't see: Media, Posts return an "Invalid post type", there are no Pages (but in fact I have 2: Contact and About).

Also, i would like to redirect to but i've got no idea how to make this work without any problems in nginx.

This is my vhost:

Thank you in advance for helping out!
Re: Nginx & Wordpress
May 24, 2013 02:44AM
No one has any ideas?
Re: Nginx & Wordpress
June 23, 2013 07:03AM
Try adding the following just below the server_name directive:

# Add trailing slash to */wp-admin requests.
rewrite /wp-admin$ $scheme://$host$uri/ permanent;

Edit: I misread your issue, though you might still want that line in there. I've had issues with nginx and WP under a subdirectory.

Edited 1 time(s). Last edit at 06/23/2013 07:07AM by david.rahrer.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 230
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready