Welcome! Log In Create A New Profile

Advanced

Re: Nginx multiple php sites

Francis Daly
July 18, 2014 10:40AM
On Tue, Jul 15, 2014 at 09:15:51AM -0400, devsathish wrote:

Hi there,

> example.com => /var/www/example/index.php
> example.com/blog => /var/www/example/blog/index.php
>
> I made the first one to work using the following code. Can someone help me
> to modify this config to fit the second requirement?!

What request do you make, that does not return the response that you
expect?

> location / {
> root /var/www/example/;
> try_files $uri $uri/ /index.php?$args;
> index index.php index.html index.htm;
> }

I suspect that you will want some requests to "fall back" to
/blog/index.php instead of /index.php.

Possibly using a "location /blog/ {}" would help with that.

If that doesn't point you in the right direction, can you be very specific
in one example of what you do / what you get / what you want to get?

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Nginx multiple php sites

devsathish July 15, 2014 09:15AM

Re: Nginx multiple php sites

Anoop Alias July 15, 2014 10:30AM

Re: Nginx multiple php sites

Anoop Alias July 15, 2014 10:32AM

Re: Nginx multiple php sites

B.R. July 15, 2014 12:18PM

Re[2]: Nginx multiple php sites

artem July 15, 2014 02:00PM

Re: Re[2]: Nginx multiple php sites

B.R. July 15, 2014 03:44PM

Re: Nginx multiple php sites

Francis Daly July 18, 2014 10:40AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 243
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready