- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Apache - How can I limit access only to specific U...
Operating System - Linux
1753555
Members
5655
Online
108795
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-23-2007 08:00 PM
тАО09-23-2007 08:00 PM
Apache - How can I limit access only to specific URLs?
I have a website (virtual server) and many DNS
aliases pointed to the same server.
But I have some directory which should be accessible
only via specific DNS alias (== URL).
If/How this can be done?
E.g, I have a.example.com, b.example.com,
c.example.com pointed to the same virtualhost.
And for a.example.com I'd like to provide access to
some dir as http://a.example.com/only_for_a.
(it shouldn't be accessible as
http://b.example.com/only_for_a)
aliases pointed to the same server.
But I have some directory which should be accessible
only via specific DNS alias (== URL).
If/How this can be done?
E.g, I have a.example.com, b.example.com,
c.example.com pointed to the same virtualhost.
And for a.example.com I'd like to provide access to
some dir as http://a.example.com/only_for_a.
(it shouldn't be accessible as
http://b.example.com/only_for_a)
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-24-2007 01:22 AM
тАО09-24-2007 01:22 AM
Re: Apache - How can I limit access only to specific URLs?
solved using apache variables:
SetEnvIf Host linux1.example.com allow_host_linux1
Order Deny,Allow
Deny from all
Allow from env=allow_host_linux1
SetEnvIf Host linux1.example.com allow_host_linux1
Order Deny,Allow
Deny from all
Allow from env=allow_host_linux1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-24-2007 01:35 AM
тАО09-24-2007 01:35 AM
Re: Apache - How can I limit access only to specific URLs?
Please correct me if I'm wrong, but if you specify a different DocumentRoot for each virtual host, and for example, a different directory includes in each virtual host:
Include conf.d//*.conf
The pages available to one virtual host sould not be served by another virtual host.
Include conf.d/
The pages available to one virtual host sould not be served by another virtual host.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-24-2007 03:18 AM
тАО09-24-2007 03:18 AM
Re: Apache - How can I limit access only to specific URLs?
Ivan, thank you!
In my configuration I use just DNS aliases for different customers, I don't have apache virtualhost per customer.
In my configuration I use just DNS aliases for different customers, I don't have apache virtualhost per customer.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP