#1  
Old 1st February 2013, 12:28
Rashef Rashef is offline
Member
 
Join Date: Nov 2008
Posts: 58
Thanks: 7
Thanked 1 Time in 1 Post
Default nginx and Wordpress

Hi guys,

I'm struggling to understand how to have my Wordpress instances working properly on NGINX with a ISPconfig3 head...

I found many different guides about how to modify NGINX for Wordpress, but I'd like to understand if I can avoid to modify the conf files and use only the ISPconfig3 interface.

This is my current conf in "nginx Directives":

Code:
location / {
                try_files $uri $uri/ /index.php?$args;
       }

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

       location ~*  \.(jpg|jpeg|png|gif|css|js|ico)$ {
                expires max;
                log_not_found off;
       }
fastcgi_buffers 8 16k;
fastcgi_buffer_size 32k;
But I'm still not able to have Wordpress in a subfolder working with the root URL, anyone succeed on it?

Last edited by Rashef; 1st February 2013 at 12:34.
Reply With Quote
Sponsored Links
  #2  
Old 2nd February 2013, 12:02
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

Quote:
Originally Posted by Rashef View Post
But I'm still not able to have Wordpress in a subfolder working with the root URL, anyone succeed on it?
Set up a new vhost and add a root directive that points to the correct folder:


Code:
location / {
       root /path/to/your/document/root;
       try_files $uri $uri/ /index.php?$args;

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

       location ~*  \.(jpg|jpeg|png|gif|css|js|ico)$ {
                expires max;
                log_not_found off;
       }
}
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
Rashef (2nd February 2013)
  #3  
Old 3rd February 2013, 02:23
rlischer rlischer is offline
Senior Member
 
Join Date: Jul 2009
Posts: 120
Thanks: 5
Thanked 1 Time in 1 Post
Default

Are you saying to paste the above code in "nginx Directives" of the site?

thanks!
Reply With Quote
  #4  
Old 4th February 2013, 13:01
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

Yes, that's right!
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 4th February 2013, 13:26
rlischer rlischer is offline
Senior Member
 
Join Date: Jul 2009
Posts: 120
Thanks: 5
Thanked 1 Time in 1 Post
 
Default

Thanks! This worked like a charm.
Reply With Quote
Reply

Bookmarks

Tags
cache, site address, wordpress, wp-supercache

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
nginx and wordpress permalink settings onastvar General 8 7th January 2013 16:50
Wordpress Error 500 on ISPConfig3.0.4.3 NGINX tested0002 Installation/Configuration 15 9th November 2012 12:17
nginx & wordpress gives 500 pages EckyBrazz Server Operation 8 24th October 2012 00:06
Wordpress admin on nginx+php5-fpm on VPS incredibly slow. Other apps/WP front end OK talkingnews General 6 28th January 2012 12:46
NGINX vs Apache rafael-ec General 1 13th January 2012 08:53


All times are GMT +2. The time now is 23:58.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.