With the new BSDi vhost directory structure, I can no longer view my vhosts as a subdirectory under my main domain. How can I look at my vhosts website like I used to be able to?
Since the new directory structure places the vhost directory on the same level as the Virtual Server’s htdocs directory, the method of using “http://www.main-domain.com/vhost-domain/” to view the site is no longer valid. Fortunately, there is a simple procedure that will allow the above URL to work again. The procedure involves adding a single line to the vhosts.conf file which is located in the ~/www/conf directory on your Virtual Server. You simply need to insert the following line to the Virtual Server’s domain: Alias /vhost-domain/ /usr/local/etc/httpd/vhosts/vhost-domain/htdocs/ Once you have made this modification, you can open your browser and go to the following URL to display your vhosts homepage: http://www.main-domain.com/vhost-domain/ You can even add further subdirectories to the above URL. This will only allow you to view your site and not to run any cgi scripts as the path the to cgi-bin will be incorrect.
Related Questions
- With the new BSDi vhost directory structure, I can no longer view my vhosts as a subdirectory under my main domain. How can I look at my vhosts website like I used to be able to?
- How do I checkout drupal in main virtual document directory public_html instead of in drupal subdirectory ?
- Why are visitors receiving a "403 Forbidden" error page when they try to view the contents of a directory?