Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

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?

0
Posted

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?

0

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

Thanksgiving questions

*Sadly, we had to bring back ads too. Hopefully more targeted.