Skip to content

Instantly share code, notes, and snippets.

@dejanmarkovic
Created December 7, 2013 14:34
Show Gist options
  • Select an option

  • Save dejanmarkovic/7842933 to your computer and use it in GitHub Desktop.

Select an option

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 webmaster@dummy-host2.example.com
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