You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Nick Edwards <ni...@gmail.com> on 2012/03/02 11:06:55 UTC

[users@httpd] viurtual management

Hi,
 With a lot of virtual hosts, is it possible to have a sort of global
(  /admin ) directory, which uses a specific dir elsewhere, that
everyone is referenced to when they type  their.domain/admin

Trying to avoid a mass change of thousands of files, if I can get them
all to go to one physical /admin dir where we can use apache auth and
sql to do the other tricky things. Not sure if we can use  <location>
like that or not?

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] viurtual management

Posted by Anam Ali Khan <an...@yahoo.com>.
Create a symbolic link in each domain document root.

-Anam



________________________________
 From: Pete Houston <ph...@openstrike.co.uk>
To: users@httpd.apache.org 
Sent: Friday, 2 March 2012, 15:17
Subject: Re: [users@httpd] viurtual management
 
On Fri, Mar 02, 2012 at 08:06:55PM +1000, Nick Edwards wrote:
>  With a lot of virtual hosts, is it possible to have a sort of global
> (  /admin ) directory, which uses a specific dir elsewhere, that
> everyone is referenced to when they type  their.domain/admin

Sounds like an Alias to me. Any reason not to set an alias in your main
conf? eg.

    Alias    /admin    /path/to/global/admin

Pete
-- 
Openstrike - improving business through open source
http://www.openstrike.co.uk/ or call 01722 770036 / 07092 020107

Re: [users@httpd] viurtual management

Posted by Pete Houston <ph...@openstrike.co.uk>.
On Fri, Mar 02, 2012 at 08:06:55PM +1000, Nick Edwards wrote:
>  With a lot of virtual hosts, is it possible to have a sort of global
> (  /admin ) directory, which uses a specific dir elsewhere, that
> everyone is referenced to when they type  their.domain/admin

Sounds like an Alias to me. Any reason not to set an alias in your main
conf? eg.

	Alias	/admin	/path/to/global/admin

Pete
-- 
Openstrike - improving business through open source
http://www.openstrike.co.uk/ or call 01722 770036 / 07092 020107