Skip to content

Instantly share code, notes, and snippets.

@tedz2usa
Created December 19, 2016 09:48
Show Gist options
  • Save tedz2usa/fedfd05971f6284c4f312614ecbbc8f4 to your computer and use it in GitHub Desktop.
Save tedz2usa/fedfd05971f6284c4f312614ecbbc8f4 to your computer and use it in GitHub Desktop.
# Inside httpd-vhost.conf
<VirtualHost *:80>
ServerName docserver.proj
DocumentRoot "C:\Users\....\projectfolder\site"
ErrorLog "C:\Users\....\projectfolder\logs\errors.log"
CustomLog "C:\Users\....\projectfolder\logs\access.log" common
<Directory "C:\Users\....\projectfolder\site">
Require all granted
DirectoryIndex index.php
</Directory>
</VirtualHost>
# Inside of httpd.conf, uncomment the line:
Include conf/extra/httpd-vhosts.conf
# Inside of system hosts file
127.0.0.1 testprojectfolder.com
# Restart the Apache service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment