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

Re: [cobalt-users] looking at a site before domain is transferred



I found that the FASTEST and Easiest Way to do this is to add an alias in
the httpd.conf file.

Here are the steps:
login to telnet and su to root.
type pico /etc/httpd/conf/httpd.conf

Go down to a domain name <VirtualHost workingdomain.com> that works,
Preferably your main domain.

Add this line in between <VirtualHost workingdomain.com> and </VirtualHost>
Alias /newdomain/ /home/sites/site10/web/

Now... when you goto the domain that works on the server, and goto the
/newdomain/ folder, it will look in the documents folder of the domain that
isnt working yet.

www.workingdomain.com/newdomain/

Make sure you restart the httpd server:
[root@www]#  /etc/rc.d/init.d/httpd restart


MAKE SURE you add a trailing slash "/" at the end of the foldernames.
Otherwise stuff will mess up.
Also.. keep in mind that www.workingdomain.com/newdomain is DIFFENT than
www.workingdomain.com/newdomain/


Hope that helps.

Clint