Re: [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]

 



Thanks.

This is what I have setup:

<VirtualHost _default_:8000>
# deny any url that does not match "/AAA"
    <LocationMatch "!^(/AAA)">
        Order Deny,Allow
        Deny from all
    </LocationMatch>
</VirtualHost>

<VirtualHost _default_:7778>
# deny any url that does not match "/BBB"
    <LocationMatch "!^(/BBB)">
        Order Deny,Allow
        Deny from all
    </LocationMatch>
</VirtualHost>

But it is not working correctly.  Can someone point
out what I did wrong.

Thanks,
Charles Li

--- Charles Li <cli168@xxxxxxxxx> wrote:
> 
> --- "bvr@xxxxxxxxx" <bvr@xxxxxxxxx> wrote:
> > Date: Tue, 05 Apr 2005 00:27:18 +0200
> > From: "bvr@xxxxxxxxx" <bvr@xxxxxxxxx>
> > To: users@xxxxxxxxxxxxxxxx
> > Subject: Re: [users@httpd] Re: how to limit access
> > to application base on
> >  port number
> > 
> > 
> > Use a VirtualHost for each port, and (for example)
> > Location + Allow/Deny to restrict them to appA and
> > appB respectively.
> > 
> >
>
http://httpd.apache.org/docs-2.0/mod/core.html#virtualhost
> >
>
http://httpd.apache.org/docs-2.0/mod/core.html#location
> >
>
http://httpd.apache.org/docs-2.0/mod/mod_access.html#deny
> > 
> > bvr.
> > 
> > Charles Li wrote:
> > > This is what I would like to do:
> > > 
> > > When a user comes in using URL: server:7777, I
> > want
> > > them to only access server:7777/appA, they can
> not
> > > access other apps but appA
> > > 
> > > When a user comes in using URL: server:8888, I
> > want
> > > them to only access server:8888/appB, they can
> not
> > > access other apps but appA
> > > 
> > > Thanks,
> > > Charles Li
> > > 
> > > 
> > > --- Charles Li <cli168@xxxxxxxxx> wrote:
> > > 
> > >>Is there a way to limit what application a user
> > can
> > >>access base on the port number the user comes
> > from?
> > >>ie.  I want user coming in from port 7777 to
> only
> > be
> > >>able to run app A, and port 8888 to only run app
> > B.
> > >>
> > >>Thanks.
> > >>
> >
> >>__________________________________________________
> > >>Do You Yahoo!?
> > >>Tired of spam?  Yahoo! Mail has the best spam
> > >>protection around 
> > >>http://mail.yahoo.com 
> > >>
> > > 
> > > 
> > > 
> > > 		
> > > __________________________________ 
> > > Do you Yahoo!? 
> > > Yahoo! Mail - 250MB free storage. Do more.
> Manage
> > less. 
> > > http://info.mail.yahoo.com/mail_250
> > > 
> > >
> >
>
---------------------------------------------------------------------
> > > 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
> > > 
> > > 
> > > 
> > 
> >
>
---------------------------------------------------------------------
> > 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
> > 
> > 
> 
> 
> 		
> __________________________________ 
> Yahoo! Messenger 
> Show us what our next emoticon should look like.
> Join the fun. 
> http://www.advision.webevents.yahoo.com/emoticontest
> 


		
__________________________________ 
Yahoo! Messenger 
Show us what our next emoticon should look like. Join the fun. 
http://www.advision.webevents.yahoo.com/emoticontest

---------------------------------------------------------------------
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