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

RE: [cobalt-users] Where's Carrie - [ see a virtual site before nameservers are changed to it]



> >>>> The lovely Carrie B (come out to play Carrie - the spring 
> solstice is here
> )
> >>>>> Had a solution some time ago by changing one of the config 
> files on the
> Raq. It wasnt perfect and cgis wouldnt work but at least you could see the
> site.
> 
> Blessings
> Revd Leonard
>

That's a simple change. 

login as admin 
su to root
cd /etc/httpd/conf

pico -w httpd.conf    (or your favourite editor)
   search down for a domain virtualhost bucket - anyone that you want to use

   add the following line after the existing AliasMatch

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

save the file and exit the editor

reload httpd -   /etc/rc.d/init.d/httpd reload

now depending on the domain picked you can see any site on the server (even if not propagated) by:

www.pickeddomain.com/usersites/www.notpropagateddomain.com

where pickeddomain is the one you added the AliasMatch to and www.notpropagateddomain is the one you want to view

note you need to have the www. in front of the domain you want to view

cheers

Jim Carey