Skip to content

Instantly share code, notes, and snippets.

@MaraScott
Last active December 14, 2015 07:58
Show Gist options
  • Select an option

  • Save MaraScott/5053997 to your computer and use it in GitHub Desktop.

Select an option

Save MaraScott/5053997 to your computer and use it in GitHub Desktop.
Name : httpd-vhosts - Language : ApacheConf - type : conf - platform : xampp - tag :
# Virtual Hosts configuration on xampp
# see : http://www.tildemark.com/setting-up-virtual-hosts-with-xampp-running-on-windows-xp/
# add your domain name in F:\Windows\System32\drivers\etc\hosts like
# 127.0.0.1 sub.domain.tld
# see : http://httpd.apache.org/docs/2.2/vhosts/
# NameVirtualHost *:80 useless
<VirtualHost *:80>
DocumentRoot "F:/PATH/TO/XAMPP/htdocs/
ServerName localhost
</VirtualHost>
<VirtualHost sub.domain.tld>
DocumentRoot "F:/PATH/TO/XAMPP/htdocs/working_on/server/localhost/turnigy/dev"
ServerName sub.domain.tld
ServerAlias sub.domain.tld
CustomLog "F:/PATH/TO/XAMPP/htdocs/logs/turnigy/dev/custom.log" combined
ErrorLog "F:/PATH/TO/XAMPP/htdocs/logs/turnigy/dev/error.log"
<Directory "F:/PATH/TO/XAMPP/htdocs/working_on/server/localhost/turnigy/dev">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment