Welcome Guest. Please Login or Register  


You are here: Index > Webuzo > General Support > Topic : Nginx as reverse proxy for WSGI server



Normal Mode | Print  

Nginx as reverse proxy for WSGI server
erile
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...
IP: --   


Threads
 erile   Nginx as reverse proxy for WSGI server (6 Replies, Read 368887 times)
    |--  erile   Hmm, I suspect...   on August 4, 2019, 8:50 pm
    |--  erile   This weird effect...   on August 4, 2019, 9:05 pm
    |--  erile   Some news: I...   on August 5, 2019, 12:12 am
    |--  erile   UPDATE: I have...   on August 5, 2019, 12:45 am
    |--  erile   OK, Solved with...   on August 5, 2019, 11:16 am
    |--  naresh335   thanks for this...   on November 25, 2022, 2:58 am

« Previous    Next »

Normal Mode | Print  



Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is July 6, 2025, 5:34 am.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 10  |  Page Created In:0.012