Welcome! Log In Create A New Profile

Advanced

Nginx & Wordpress

Posted by alexandruv 
Nginx & Wordpress
May 23, 2013 06:46PM
Hello!

I'm having a hard time with nginx & wordpress. Specifically I installed/configured WP on http://www.busybabybook.com/blog/ 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 www.busybabybook.com to www.busybabybook.com/blog/ but i've got no idea how to make this work without any problems in nginx.

This is my vhost:
http://pastebin.com/ugvLMQYd

Thank you in advance for helping out!
Regards,
Alex
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: 239
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