Thread: nginx rewrite
View Single Post
  #1  
Old 30th July 2012, 17:53
onastvar onastvar is offline
Senior Member
 
Join Date: Apr 2008
Location: U.S.A.
Posts: 192
Thanks: 61
Thanked 12 Times in 12 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.4p5 | Debian Wheezy | BIND | Dovecot 2.1.7 | Apache 2.2.22 | MySQL 5.5.38 | PHP 5.3.22
Reply With Quote
Sponsored Links