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

RE: [cobalt-users] View site content prior to name server change?




> -----Original Message-----
> From: cobalt-users-admin@xxxxxxxxxxxxxxx
> [mailto:cobalt-users-admin@xxxxxxxxxxxxxxx]On Behalf Of Bryan at
> MightyMite.Net
> Sent: Thursday, 31 May 2001 1:29 AM
> To: cobalt-users@xxxxxxxxxxxxxxx
> Subject: [cobalt-users] View site content prior to name server change?
>
> time to fax!)...anyways...my question was is there a URL that would work
> right now to allow me to view the html content of the Cobalt box in my
> browser before those name servers change? Or do I have to just
> wait for the
> name servers to change?

>
> Rained on in Seattle
> Bryan Hendrickson
> bryan@xxxxxxxxxxxx


ok - pick one of your virtual sites.

ssh or telnet in to the system
su to root
edit httpd.conf -
pico -w /etc/httpd/conf/httpd.conf

in the virtual site that you have chosen add the following:

AliasMatch ^/usersites/([^/]+)(/(.*))? /home/sites/$1/web/$3

save the file and then:

/etc/rc.d/init.d/httpd restart

after that you will be able to see the site (any of the sites) in:

http://www.domain.com/usersites/www.newsite.com

where domain.com is the site you picked above and the one you added the
AliasMatch to and newsite is the "newsite" :-)

make sure you backup httpd.conf first- cp /etc/httpd/conf/httpd.conf
/etc/httpd/conf/httpd.conf.bak

cheers

Jim Carey
www.OZbcoz.com discount domain registration
www.iluvoz.com affordable hosting services