Score:0

nginx "deny all" location not working when clicking href-element

do flag

I'm trying to deny acess to the root url of a proxied web application. Only the path /images is supposed to be accessible from the internet.

My nginx configuration for the page looks like this:

...
server {
        location / {
                deny all;
        }
        location /images {
                proxy_pass https://xyz.abc/images;

}
...

However, if i click a button with href="/" on the /images page, i can access the /-site. When i refresh this page now, i get a 403 error. But this only happens after the refresh, not when first clicking the href="/" button.

Thank you!

drookie avatar
za flag
Try with browser cache disabled.
Score:0
do flag

Thank you @drookie, disabling browser cache solved the problem. I tried on another computer and it worked!

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.