[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-developers] Testing site before DNS transfer
- Subject: RE: [cobalt-developers] Testing site before DNS transfer
- From: "Michael Aronoff" <ma@xxxxxxxx>
- Date: Sun Mar 30 17:18:01 2003
- List-id: Discussion Forum for developers on Sun Cobalt Networks products <cobalt-developers.list.cobalt.com>
Peter wrote:
> I've created a new virtual site (www.domain.com) and what to
> be able to
> test the site before transferring the DNS over from where it was
> previously hosted. How can I view it? I've tried
> www.myhostdomain.com/home/sites/site1, and putting a symbolic
> link from
> the web folder from a site I have transferred over to the site I want
> to test but I get a permission denied message when following the link
> in a browser.
I don't know what you have done that is not working but if you can undo it
and follow the below.
I have modified the instructions found at
http://www.uk2raq.com/raqfaq/raqfaqshow.php?faq=31. That Faq is for secure
access and I did not want to use it for that so I have just changed the
alias to /sites instead below.
You need to edit the Apache config file, /etc/httpd/conf/httpd.conf
Search down this file until you find the entry for the virtual site that you
need to preview.
Directly below the line that says
AliasMatch ^/users/([^/]+)(/(.*))? /home/sites/site3/users/$1/web/$3
Add this new line:
AliasMatch ^/sites/([^/]+)(/(.*))? /home/sites/$1/web/$3
You now need to restart Apache.
As root, run the command
/etc/rc.d/init.d/httpd restart
How to access this: if your main site is www.safe.com and your new site is
www.open.com, you can view it by going to:
http://www.safe.com/sites/www.open.com
Note that this works by redirecting the request into the /home/sites file
tree.
Therefore http://www.safe.com/sites/open.com would not work.
As and added tip if you want it to work for all sites always you can add the
new line to the bottom of srm.conf instead and whenever you add a new vsite
you can preview it in the same fashion.
Good luck.
---------------------------------------------
Michael Aronoff - ma@xxxxxxxx
Calabasas, CA