Prev Previous Post   Next Post Next
Old 30th July 2012, 17:53
onastvar onastvar is offline
Senior Member
Join Date: Apr 2008
Location: U.S.A.
Posts: 197
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.

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 | Debian Wheezy | BIND | Dovecot 2.1.7 | Apache 2.2.22 | MySQL 5.5.38 | PHP 5.3.22
Reply With Quote
Sponsored Links


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 rewrite for drupal icphedia Installation/Configuration 6 24th November 2013 11:50
Major recovery Toucan Installation/Configuration 18 9th August 2011 12:45
A Working Nginx Catchall with ISPConfig 3. renders Tips/Tricks/Mods 4 15th April 2011 22:53
Nginx and PHP and Fastcgi Paladinemishakal Installation/Configuration 1 4th January 2011 14:45
How to change rewrite from apache to nginx vuit Server Operation 0 24th February 2010 08:45

All times are GMT +2. The time now is 04:45.

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