Created
September 3, 2013 12:55
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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