Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Disable access to /folder from host1, but enable from 2

$
0
0
Hi all,

Some stuff should only be accesible from host2.com/folder. When i enter host1.com/folder, there's a redirect to host2.com/folder. Ehh what? The're bot separated config-files.

In the server-section of host2 i have the following line:
# block folder
location ~ ^/folder/* {
return 403;
}

Is this correct?

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>