Welcome! Log In Create A New Profile

Advanced

Re: cache configuration

February 06, 2013 01:45PM
Hello!

I have to reopen this topic, because the issue is back...

I have a basic host file, that defines thr root folder for a host as:

# file ax-common-vhost
server {
if ($host ~ ^(?<project>.+)\.(?<area>.+)\.loc$) {
set $folder "$area/$project";
}
...
root /var/www/$folder/;
}

Now I want to add another basic vhost file for Zend Framework projects. There the webroot should be in the older "public" directly under the root. So I created a copy of my basic vhost file with a new root rule:

# ax-zf-vhost
server {
if ($host ~ ^(?<project>.+)\.(?<area>.+)\.loc$) {
set $folder "$area/$project";
}
...
root /var/www/$folder/public/;
}

# file zf1sandbox.sandbox.loc
include /etc/nginx/sites-available/ax-zf-vhost;

But it's not working. The server tries to open the path of the zf1sandbox project root, cannot find any index file there and throws a 403 error.

I've already set the sendfile setting to "off" in all relevant files/segments:

# file nginx.conf
http {
...
sendfile off;
...
}

# file ax-zf-vhost
server {
location / {
index index.html index.php;
sendfile off;
}
}
SubjectAuthorPosted

cache configuration

automatixJanuary 26, 2013 02:20PM

Re: cache configuration

Daniel15January 27, 2013 07:10AM

Re: cache configuration

automatixJanuary 28, 2013 11:27AM

Re: cache configuration

kolbyjackJanuary 28, 2013 11:48AM

Re: cache configuration

automatixJanuary 28, 2013 12:48PM

Re: cache configuration

Valentin V. BartenevJanuary 28, 2013 12:56PM

Re: cache configuration

automatixJanuary 28, 2013 01:10PM

Re: cache configuration

automatixFebruary 06, 2013 01:45PM

Re: cache configuration

automatixFebruary 06, 2013 01:55PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 39
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 156 on March 20, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready