|
|
|
|
||||||
| alt.apache.configuration Apache web server configuration issues. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
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? > |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
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. |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
"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. |
|
![]() |
| Outils de la discussion | |
|
|