Skip to ContentSkip to Footer
Start of content
- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - Linux
- >
- General
- >
- Apache - How can I limit access only to specific U...
General
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Latin America
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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.
End of content
United States
Hewlett Packard Enterprise International
Communities
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP