httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <>
Subject Re: [users@httpd] Setting up a staging server with apache
Date Mon, 30 Apr 2007 19:58:30 GMT
On 4/29/07, John Steel <> wrote:

> I am trying to reproduce this setup for PHP development which will
> manage separate hosts running separate apps (Drupal, MediaWiki, etc).
> If I try to use Apache VirtualHosts I get stuck - I know I could set up
> and as separate entries but that means
> messing externally with with the IP addresses/hostnames. Is this
> possible with a rewrite rule? I.e., if you see
> http://localhost:8010/{$hostname} you really mean ServerName={$hostname}
> in httpd.conf?
> Any smarter solutions very welcome, thanks.

Just put the php apps in separate directories under your DocumentRoot.
No need for several virtual hosts. The only hitch could be if the apps
make assumptions about being able to use absolute URLs (starting in

An alternative is port-based virtual hosts with a reverse proxy and
possibly mod_proxy_html to correct links. (Put each webapp on a
high-numbered port, and then use ProxyPass and ProxyPassReverse on
port 80 to pass requests back to the webapps.)


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message