httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Victor Trac" <victor.t...@gmail.com>
Subject Re: [users@httpd] Apache 2 as front end?
Date Tue, 02 May 2006 08:04:10 GMT
Try:
NameVirtualHost 123.123.123.123

<VirtualHost a.com:80>
  DocumentRoot /var/www/a.com/
  ServerName a.com
  ServerAlias www.a.com
  <Directory /var/www/a.com/>
    [some stuff]
  </Directory>
</VirtualHost>

<VirtualHost b.domain.com:2002>
  DocumentRoot /var/www/b.domain.com/
  ServerName b.domain.com
  <Directory /var/www/b.domain.com/>
    [some stuff]
  </Directory>
</VirtualHost>

<VirtualHost bweb.com:80>
  ServerName bweb.com
  ServerAlias www.bweb.com
  RewriteEngine on
  RewriteCond %{HTTP_HOST}     !^$
  RewriteRule ^/(.*)     http://b.domain.com
</VirtualHost>

-Victor

On 5/1/06, Mark Greenbank <mark.greenbank@gmail.com> wrote:
>
> Hi all,
>
> I'm pretty new to the Apache config game :). Here's my setup:
>
> host A.com:
> - This is the main http server using named virtual hosts to control which
> web site is accessed (that is, one IP address + many named hosts).
>
> host B.domain.com:
> - Internal host that runs a web site on port 2002. That is, internally it
> is accessed as http://B:2002/index.html
>
> host Bweb.com:
> - I'd like any quests to this host (fielded by the VHOST config on A.com)
> to be redirected to B.domain.com and the response correctly send back to
> the user.
>
> Is this possible to configure with Apache? I've look through quite a lot
> of documentation but I think I'm unclear of which terminology I should
> search on.
>
> Any help or pointers to documentation would be appreciated.
> Thanks,
> Mark
>



--
http://www.victortrac.com
Mime
View raw message