PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > alt.apache.configuration > VHost Config
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
alt.apache.configuration Apache web server configuration issues.

VHost Config

Réponse
 
LinkBack Outils de la discussion
Vieux 02/02/2007, 00h57   #1
wiggledbits
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut VHost Config

What might be a good way to do the following;
I have domain a.com and b.a.com as A records in DNS.
Domain a.com is at xxx.xxx.xxx.201
Domain b.a.com is at xxx.xxx.xxx.203
I need to move b.a.com to xxx.xxx.xxx.201.
I tried changing DNS records to point b.a.com to 201 waited for the change,
ping/dig b.a.com and got xxx.xxx.xxx.201 in return.
Changed httpd to
<VirtualHost *:80>
ServerAdmin webmaster@a.com
DocumentRoot /home/web/a.com
ScriptAlias /cgi-bin /home/web/a.com
ServerName a.com
  Réponse avec citation
Vieux 02/02/2007, 06h10   #2
wiggledbits
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: VHost Config

Never mind my post below. What can I say but I'm an idiot sometimes.


"wiggledbits" <abigdipstick@gmail.com> wrote in message
news:12s533nknvjqb97@corp.supernews.com...
> What might be a good way to do the following;
> I have domain a.com and b.a.com as A records in DNS.
> Domain a.com is at xxx.xxx.xxx.201
> Domain b.a.com is at xxx.xxx.xxx.203
> I need to move b.a.com to xxx.xxx.xxx.201.
> I tried changing DNS records to point b.a.com to 201 waited for the
> change, ping/dig b.a.com and got xxx.xxx.xxx.201 in return.
> Changed httpd to
> <VirtualHost *:80>
> ServerAdmin webmaster@a.com
> DocumentRoot /home/web/a.com
> ScriptAlias /cgi-bin /home/web/a.com
> ServerName a.com
> .
> .
> .
> </VirtualHost>
>
> # VirtualHost
> <VirtualHost *:80>
> ServerAdmin webmaster@free-4-all.net
> DocumentRoot /home/web/a.com/b.a.com
> ServerName b.a.com
> .
> .
> .
> </VirtualHost>
>
> and restarted httpd.
>
> But only a.com will open in the browser. I need to make this transition
> ASAP but having the site down for little of no time.
>
> What am I missing?
>



  Réponse avec citation
Vieux 02/02/2007, 07h50   #3
shimmyshack
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: VHost Config

On 2 Feb, 06:10, "wiggledbits" <abigdipst...@gmail.com> wrote:
> Never mind my post below. What can I say but I'm an idiot sometimes.
>
> "wiggledbits" <abigdipst...@gmail.com> wrote in message
>
> news:12s533nknvjqb97@corp.supernews.com...
>
> > What might be a good way to do the following;
> > I have domain a.com and b.a.com as A records in DNS.
> > Domain a.com is at xxx.xxx.xxx.201
> > Domain b.a.com is at xxx.xxx.xxx.203
> > I need to move b.a.com to xxx.xxx.xxx.201.
> > I tried changing DNS records to point b.a.com to 201 waited for the
> > change, ping/dig b.a.com and got xxx.xxx.xxx.201 in return.
> > Changed httpd to
> > <VirtualHost *:80>
> > ServerAdmin webmas...@a.com
> > DocumentRoot /home/web/a.com
> > ScriptAlias /cgi-bin /home/web/a.com
> > ServerName a.com
> > .
> > .
> > .
> > </VirtualHost>

>
> > # VirtualHost
> > <VirtualHost *:80>
> > ServerAdmin webmas...@free-4-all.net
> > DocumentRoot /home/web/a.com/b.a.com
> > ServerName b.a.com
> > .
> > .
> > .
> > </VirtualHost>

>
> > and restarted httpd.

>
> > But only a.com will open in the browser. I need to make this transition
> > ASAP but having the site down for little of no time.

>
> > What am I missing?


I note you said you "waited for the [DNS] change" - you can get around
that step by adjusting your hosts file with the relevant entry
xxx.xxx.xxx.201 a.b.com
then a restart of your browser is all that's needed, just comment it
out from the hosts file and restart to test the public DNS.

This is a useful way to migrate sites as you can set up your new
domain (say testing.com) and use your hosts file to point to your
server, when you have tested the new domain and when everything is
working as required, THEN change the public DNS and the switch is
painless - you won't get any complaints about things not working, and
you are in control of the timetable.

  Réponse avec citation
Vieux 02/02/2007, 16h41   #4
wiggledbits
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: VHost Config


"shimmyshack" <matt.farey@gmail.com> wrote in message
news:1170402648.884397.243490@p10g2000cwp.googlegr oups.com...
> On 2 Feb, 06:10, "wiggledbits" <abigdipst...@gmail.com> wrote:
>> Never mind my post below. What can I say but I'm an idiot sometimes.
>>
>> "wiggledbits" <abigdipst...@gmail.com> wrote in message
>>
>> news:12s533nknvjqb97@corp.supernews.com...
>>
>> > What might be a good way to do the following;
>> > I have domain a.com and b.a.com as A records in DNS.
>> > Domain a.com is at xxx.xxx.xxx.201
>> > Domain b.a.com is at xxx.xxx.xxx.203
>> > I need to move b.a.com to xxx.xxx.xxx.201.
>> > I tried changing DNS records to point b.a.com to 201 waited for the
>> > change, ping/dig b.a.com and got xxx.xxx.xxx.201 in return.
>> > Changed httpd to
>> > <VirtualHost *:80>
>> > ServerAdmin webmas...@a.com
>> > DocumentRoot /home/web/a.com
>> > ScriptAlias /cgi-bin /home/web/a.com
>> > ServerName a.com
>> > .
>> > .
>> > .
>> > </VirtualHost>

>>
>> > # VirtualHost
>> > <VirtualHost *:80>
>> > ServerAdmin webmas...@free-4-all.net
>> > DocumentRoot /home/web/a.com/b.a.com
>> > ServerName b.a.com
>> > .
>> > .
>> > .
>> > </VirtualHost>

>>
>> > and restarted httpd.

>>
>> > But only a.com will open in the browser. I need to make this transition
>> > ASAP but having the site down for little of no time.

>>
>> > What am I missing?

>
> I note you said you "waited for the [DNS] change" - you can get around
> that step by adjusting your hosts file with the relevant entry
> xxx.xxx.xxx.201 a.b.com
> then a restart of your browser is all that's needed, just comment it
> out from the hosts file and restart to test the public DNS.
>
> This is a useful way to migrate sites as you can set up your new
> domain (say testing.com) and use your hosts file to point to your
> server, when you have tested the new domain and when everything is
> working as required, THEN change the public DNS and the switch is
> painless - you won't get any complaints about things not working, and
> you are in control of the timetable.
>


Thanks for the hosts file info that is useful.


  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 07h12.


Édité par : vBulletin® version 3.7.3
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,16684 seconds with 12 queries