Group: Member 
Post Group: Working Newbie
Posts: 64
Status: 
|
Hmm, I suspect that my location block is simply ignored. I replaced it by this below and I still can reach the static index.html page at public root of the domain (say http://test.mydomain.com).
Code # Just to see if the location block considered or ignored
location / {
deny all;
}
And I bypassed my local browser cache of course...
Then, I tried to add this same extra conf file for testing to my primary domain (say mydomain.com) and I can see that the page is well displayed but not the images that are declared in <img> tag with a src attributes as relative path... So, rather than ignored, it sounds like this location block as an effect but not the expected one (it should deny all and it just breaks relative paths).
I couldn't see this behavior with the subdomain since the index.html on subdomain doesn't contain any image.
What do you think? What could raise this behavior?
I successfully applied an extra conf for another domain (about webmail), but this time it seems to be weird ^^
----------------------- OpenVZ VPS, CentOS 7, Webuzo Premium / Desktop and full-stack dev w/ C, C++, Python, Perl, javascript... |