Re: [users@httpd] Apache 2 as front end?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx> 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
[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux