Welcome! Log In Create A New Profile

Advanced

Re: allow access on a sublocation

Reinis Rozitis
August 06, 2013 11:24AM
Document sans nom> True, but I can't do that as "location / {}" is in a
common config included by many other vhosts.

Then to clarify - you want to deny the access to all the "other vhosts" or
just one?

If one - per http://nginx.org/en/docs/http/server_names.html you can leave
the current config for all the "other vhosts" but define the one specific
host you want to deny the access with exact server_name or if you use
regular expression in the server_name place it as first in the main config.

If its all vhosts then just modify the included common config.



But in general it is hard to give you configuration suggestions not knowing
how is your existing setup.

Typically vhosts (at least for me) each have their own server {} block so
each one can have its own location definitions but the common parts (like
*.php) can be included.

rr

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

allow access on a sublocation

Greg August 06, 2013 10:10AM

Re: allow access on a sublocation

Jonathan Matthews August 06, 2013 10:24AM

Re: allow access on a sublocation

Greg August 06, 2013 10:36AM

Re: allow access on a sublocation

Jonathan Matthews August 06, 2013 10:50AM

Re: allow access on a sublocation

Reinis Rozitis August 06, 2013 10:52AM

Re: allow access on a sublocation

Greg August 06, 2013 11:02AM

Re: allow access on a sublocation

Reinis Rozitis August 06, 2013 11:24AM

Re: allow access on a sublocation

Francis Daly August 06, 2013 05:32PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 118
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready