Welcome! Log In Create A New Profile

Advanced

serving php files from 2 locations under same server name

Posted by rawvision 
serving php files from 2 locations under same server name
March 19, 2015 01:33AM
Hi

I am using nginx to server mysite.com and I also want to run a clone for testing purposes on same domain but at mysite.com/clone.

Now when I use



location /clone {
root /usr/local/nginx; #clone is folder under /usr/local/nginx
index index.php index.html;
}

and go to mysite.com/clone/index.html
I can see the html page but when i go to /mysite.com/clone/index.php, I get the option to download the php file which indicates that nginx is not passing requests to php.

How I can serve 2 php sites running under same server name but different location and root folder?

Thanks
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 154
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready