View Single Post
  #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,735 Times in 2,571 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