As I’ve already said: It can only be the server(-side) caching. Since
revoming of the browser cache and Ctrl+F5 don’t help.
But now I think, it might be an issue of the virtual machine. Because
when I
edit the files directly from the VM* and not in my hosst system,
sometimes I
can see the changes in the Browser.
The files are saved in a shared folder, so I can access to them both
–
from the host and also from the guest system.
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 ~ ^(?.+).(?.+).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 ~ ^(?.+).(?.+).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;
}
}
Sorry, my mistake. It’s another problem. The server is not analyzing my
zf1sandbox.sandbox.loc file, that includes the template for Zend
Framework
vhosts (include /etc/nginx/sites-available/ax-zf-vhost;), but is using
my
common template (ax-common-vhost).
Posted at Nginx Forum:
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.