Welcome! Log In Create A New Profile

Advanced

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

Posted by lennart 
Disable access to /folder from host1, but enable from 2
July 23, 2013 09:44AM
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?
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 151
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready