You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Mark Greenbank <ma...@gmail.com> on 2006/05/01 22:56:49 UTC

[users@httpd] Apache 2 as front end?

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

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

Posted by Victor Trac <vi...@gmail.com>.
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 <ma...@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

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

Posted by Alexander Lazic <al...@none.at>.
Hi,

On Mon 01.05.2006 16:56, Mark Greenbank wrote:
>
>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).

Do you plan to use ssl?

>Any help or pointers to documentation would be appreciated.

I will only warn you if you use mod_ssl && mod_proxy then you can fall
into know bug (37145).

It is only partially fixed in 2.0.x :-(

We have many troubles with firefox && the postback solution of M$.

http://www.xefteri.com/articles/show.cfm?id=18

The curious is with http works perfektly :-(

regards

Alex

---------------------------------------------------------------------
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