[users@httpd] Re: how to limit access to application base on port number

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Apr 5, 2005 1:53 PM, Charles Li <cli168@xxxxxxxxx> wrote:
> Joshua,
> Another related question.
> What if I want users to be able to access "/" on any
> port, which give a generic page, but lock down the
> other applications?
>
> ie.
> this is OK:  server:7777/ or server:8888/
>
> for port 7777:
> this is OK:
> server:7777/ or server:7777/App001 ONLY

<Location />
Order deny,allow
Deny from all
</Location>
<LocationMatch ^/$>
Order deny,allow
Allow from all
</LocationMatch>
<Location /App001>
Order deny,allow
Allow from all
</Location>

You may want to allow access to ^/index.html$ as well in a similar fashion.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux