PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > comp.info.servers.win > Using host headers to forward to a different server (not virtual host)
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.info.servers.win Web servers for MS Windows and NT.

Using host headers to forward to a different server (not virtual host)

Réponse
 
LinkBack Outils de la discussion
Vieux 16/11/2005, 18h01   #1
Kevin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Using host headers to forward to a different server (not virtual host)

I'm hoping this is possible. The situation is as follows:

I have two web servers, call them ServerA and ServerB. ServerA is
Apache, ServerB is IIS. My router is forwarding port 80 to ServerA and
port 8080 to ServerB. ServerB is hosting a site, let's call it
www.random.com. Unfortunately, I can only reach random.com by using
http://www.random.com:8080, but I'd like to keep ServerA serving what
it normally does.

So, the question is that I'd like to use host headers on ServerA to
forward requests for www.random.com on port 80 to ServerB. I tried the
following but it did not work:

NameVirtualHost 192.168.0.13
<VirtualHost 192.168.0.13:80>
ServerName www.random.com
</VirtualHost>


Do I need to somehow do this at the router layer, or is there some kind
of third party software I can use? If it is either of those, do you
have any suggestions?

Thank you!
Kevin

  Réponse avec citation
Vieux 16/11/2005, 21h28   #2
Thor Kottelin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Using host headers to forward to a different server (not virtualhost)



Kevin wrote:

> I have two web servers, call them ServerA and ServerB. ServerA is
> Apache, ServerB is IIS. My router is forwarding port 80 to ServerA and
> port 8080 to ServerB. ServerB is hosting a site, let's call it
> www.random.com. Unfortunately, I can only reach random.com by using
> http://www.random.com:8080, but I'd like to keep ServerA serving what
> it normally does.
>
> So, the question is that I'd like to use host headers on ServerA to
> forward requests for www.random.com on port 80 to ServerB.


A reverse proxy is probably what you want. Details are available on the
Apache web site.

Thor

--
http://www.anta.net/OH2GDF
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 11h41.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,07733 seconds with 10 queries