[PLUG] Apache Mod Q'
Evan Heidtmann
clydefrog at adnap.no-ip.com
Sat Jan 22 23:58:15 UTC 2005
On Fri, 2005-01-21 at 12:59 -0800, Jason Van Cleve wrote:
> I've got a problem trying to get Apache to work my way. I have several
> virtual hosts, all of which map to J2EE Web app's (CGI, as far as Apache
> is concerned). Now, I want to have a certain base URL--relevant to site
> A--to map to a different base URL (different hostname) that is relevant
> to site B. So,
>
> http://a.org/foo/bar/* --> http://b.net/fubar/*
>
> mod_alias doesn't do it, because that only seems to work within a single
> virtual host.
Maybe I'm missing something, but I think mod_alias should do it:
Alias directive
Syntax: Alias URL-path file-path|directory-path
Context: server config, virtual host
So, assuming that http://b.net/fubar/ is at /web/b.net/fubar/, this line
in the a.org virtualhost should do it:
Alias /foo/bar /web/b.net/fubar
It doesn't matter that /web/b.net/fubar is in the b.net virtualhost --
it's just another directory.
Evan
More information about the PLUG
mailing list