A Path Less Taken

Breaking with convention in a very conventional fashion. Powered by WordPress

"What would you attempt to do if you knew you could not fail?"
Dr. Robert Schuller

Friday, November 20, 2009

Category: Web Hosting Tags: Author: JJ 0 Comments

After acquiring a new domain I had to set up the Virtual Host in Apache. I went to httpd.conf and uncommented the Virtual Hosts Include line which includes the conf/extra/httpd-vhosts.conf file. Then I edited the vhosts file and added the following block:

1
2
3
4
5
6
7
<VirtualHost *:80>
     DocumentRoot "c:/apache/mydomain"
     ServerName mydomain.com
     <Directory "c:/apache/mydomain">
          Allow from all
     </Directory>
</VirtualHost>

Then I restarted the Apache service and my new domain worked. My thanks to this post for guidance that lead to the Directory directive included above.

No comments found. Please enter a comment if you have a question or contribution.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">