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

Re: [cobalt-users] View Virtual Site with IP?



> Sure you can, just set the virtual site up and go to the ip address that you
> set it for. Not the main ip but the one that you set the virtual at.
>
> dave

I think he's talking about name-based sites. But you can still do it. Try this:

- put the files in their own directory in your main sites web tree
- add a v site entry for in httpd.conf (make a copy of httpd.conf then copy and paste a
v-site container in httpd.conf)
- edit the v-site container to point to sitetotest.mainsite.com
- edit the v-site container to point DocumentRoot at /home/sites/sitexx/web where xx is the
site number of the site you want to test
- add an A record to point sitetotest.mainsite.com
- restart httpd and named
- thats it, should work

I have successfully added sub-domains with this method, so it ought to work.

HTH,

Joe