Thread: nginx rewrite
View Single Post
  #1  
Old 30th July 2012, 16:53
onastvar onastvar is offline
Senior Member
 
Join Date: Apr 2008
Location: U.S.A.
Posts: 182
Thanks: 57
Thanked 9 Times in 9 Posts
Default nginx rewrite

I'm using the following nginx Directives in my ISPConfig for one of my websites where I run WordPress and it works fine.

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;
       }
# Deny public access to wp-config.php
location ~* wp-config.php { 
    deny all; 
}
I'm trying to figure out how can I setup nginx rewrite so I can install another CMS (WordPress, Joomla, etc.) within same website, in another folder. Anyone has similar setup, please advise?
__________________
ISPConfig 3.0.5.3 | Debian Wheezy | BIND | Dovecot 1.2.15 | Apache 2.2.16 | MySQL 5.5 | PHP 5.4.4-14
Reply With Quote
Sponsored Links