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;
}
}
Subject Author Posted

cache configuration

automatix January 26, 2013 02:20PM

Re: cache configuration

Daniel15 January 27, 2013 07:10AM

Re: cache configuration

automatix January 28, 2013 11:27AM

Re: cache configuration

kolbyjack January 28, 2013 11:48AM

Re: cache configuration

automatix January 28, 2013 12:48PM

Re: cache configuration

Valentin V. Bartenev January 28, 2013 12:56PM

Re: cache configuration

automatix January 28, 2013 01:10PM

Re: cache configuration

automatix February 06, 2013 01:45PM

Re: cache configuration

automatix February 06, 2013 01:55PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 236
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