Skip to content

Instantly share code, notes, and snippets.

@lmoffereins
Created September 3, 2013 12:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lmoffereins/6423534 to your computer and use it in GitHub Desktop.
Save lmoffereins/6423534 to your computer and use it in GitHub Desktop.
Steps to create virtual hosts for a WordPress Multisite setup on a Xampp installation.
Setup Xampp Virtual Hosts
-------------------------
http://austinpassy.com/2012/setting-up-virtual-hosts-wordpress-multisite-with-xampp-on-windows-7/
All custom domain names must match the urls stored in the WordPress database from the General Settings page.
-------------------------
XAMPP SETTINGS
File: /xampp/apache/conf/extra/httpd-vhosts.conf
Unhash:
NameVirtualHost *:80
Add:
<VirtualHost *:80>
DocumentRoot "/xampp/htdocs"
ServerName localhost
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "/xampp/htdocs/test/wp"
ServerName wp.dev
<Directory "/xampp/htdocs/test/wp">
Options Indexes FollowSymLinks ExecCGI Includes
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
-------------------------
WINDOWS SETTINGS
File : \Windows\System32\drivers\ets\hosts.conf
No wildcard subdomain (*.wp.dev) possible. Each subdomain requires its own line.
Add:
127.0.0.1 wp.dev # Main dev localhost
127.0.0.1 mmc.wp.dev # Subdomain 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment