Skip to content

Instantly share code, notes, and snippets.

@dejanmarkovic
Created December 7, 2013 14:34
Show Gist options
  • Save dejanmarkovic/7842933 to your computer and use it in GitHub Desktop.
Save dejanmarkovic/7842933 to your computer and use it in GitHub Desktop.
Adding vietual host in apache on Xampp
Go to:
C:\xampp\apache\conf\extra\
Edit:
httpd-vhosts.conf
First you need to add xamp/localhost:
<VirtualHost *:80>
DocumentRoot "C:/xampp2/htdocs"
ServerName localhost
</VirtualHost>
<VirtualHost *:80>
##ServerAdmin [email protected]
DocumentRoot "C:\xampp2\htdocs\mysite.local\trunk"
ServerName mysite.local
ServerAlias *.mysite.local
ErrorLog "logs/local.mysite.local-error.log"
CustomLog "logs/local.mysite.local-access.log" common
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment