DocumentRoot
for each VirtualHost
should point to the directory where you installed WP multisite. There is no actual directory for subsites, they’re all virtual.
Using your example:
<VirtualHost *:80>
DocumentRoot "C:/home/wp-intall-directory"
ServerName mysite-1.dev
# not required Alias /mysite-1.dev "/home/mysite-1"
<Directory "/home/wp-intall-directory">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "C:/home/wp-intall-directory"
ServerName mysite-2.dev
# not required Alias /mysite-2.dev "/home/mysite-2"
<Directory "/home/wp-intall-directory">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
.
.
.
Related Posts:
- Moving wordpress multi to different domain and vhost – cannot log in and menu problems
- How to use WordPress Multisite With Different Domain Names?
- Setting up a wordpress network with third level domains
- How will self-hosted WordPress work with Google Page Speed Service?
- multisite: use a virtual subfolder for subblogs
- How to use alias domain for multisite installation?
- WordPress Subdomain MultiSite on localhost XAMPP on :8080 with IIS taking port 80
- How To Provide Sub-Blogs Their Own Domain Names?
- WordPress Multisite. Can domain be used instead of subdomain?
- domain mapping confused about sunrise
- WordPress Multisite – Multiple subfolders for blogs
- Using separate Apache log files for multisite
- How to use Multiple-Domains in one Multi-Site Installation?
- Changing Multisite URL after the subsite has been in use
- Jetpack Blog Subscriptions on Multisite [closed]
- Multisite without .htaccess
- How do I use different domain for subdomains in WP Multisite?
- Multiple Multisite networks on the same domain?
- Subdomain and subdirectories together in one installation
- How to configure DNS If I use the plugin yet-another-multi-site-manager?
- Multisite Subdomain Using More Resources Than Others?
- How to properly force https and www on multisite with Apache HTAccess
- Alias domain to Multi-site installation in Apache
- WordPress multisite with multiple parent domains
- How can I fix a Virtual Multiblog install that has no errors, but won’t show all my sites?
- Migrate a WP website from a single-server single-domain to a multi-server multi-domain installation
- WP Multisite – domain mapping to domain.com and separate site to domain.com/help
- How do I use different URLs in a single WordPress installation?
- Multisite on localhost using xampp
- How to redirect one page on the subdomain
- How to change the parent Domain Name in Multisites Project?
- Can you install / activate the multisite when the install is in a subfolder?
- WordPress Multisite Strange Redirect on Primary Site
- Multisite – Looking for ideas to best manage a main site change
- Multisite Redirection to new domains
- Link structure, WordPress IIS
- Multisite Create Site not working
- WordPress multisite – Bitnami
- Show content of other domain inside WordPress
- Multisite redirecting wrong when without WWW
- How Can I Change The Name Of My Subdomain in WordPress Multisite
- WordPress MU subdomain vhost
- Multisite: Redirect to appropriate domain if subdomain doesn’t exist
- Install multisite wordpress on a subdomain and map to top level domains
- Multisite – One Site with multiple URLs
- Different Domains in Multisite Setup
- Multisite on single wordpress
- How do I correctly configure my AMPPS localhost to use subdomains for multisite?
- Multisite configuration for multiple domains
- How can I map the primary domain for subsite as subdirectory for another domain?
- Folder structure when using multiple domains with WordPress
- Is there something I need to know in order to use WordPress on foreign (Swedish) TLDs?
- WordPress multisite installation subdomains not working properly
- Multisite Dashboard Always Redirects to Main Dashboard
- WordPress Multisite loads wrong subdomain dashboard
- Serve theme and plugins assets from correct domain on multi-domain multisite
- Website creation for multiple clients but from a single account on multiple host name
- After switch domain, some parts of my site still point to my old domain
- multiple domains point to same site on WP-MU
- Multisite WordPress doesn’t work properly on virual hosts
- WordPress Multisite with Wildcard Certificates not mapping correctly
- Can assign a new domain to a site in a multisite?
- Create new multisite from existing and keep domain?
- new WPMS site not working / Q setting up new site/subdomain
- How to add WordPress site to multisite network when both are addon domains
- New domain in multisite environment
- How To Change the URL of a WordPress Multisite
- Using www along with non-www for main domain in multisite installation
- Multiple WordPress on Virtual Host
- Install WordPress MU outside htdocs
- Multiple domains for with a single instal
- Multisite redirect loop for a single www domain
- wordpress multisite duplicator plugin clon to localhost(xampp) but image not show
- Error Message when logging into WordPress on Xampp
- Swap domains of two sites with each other in multisite
- How To Add Custom Form Fields To The User Profile Page?
- Where are available Roles Defined in the wp_ database?
- restore_current_blog() vs switch_to_blog()
- Can i merge 2 new WP_Query($variable) ‘s?
- How to disable a network enabled plugin for just one site?
- How to reliably flush rewrite rules on multisite?
- Site Redirecting to wp-signup.php
- Moving a WP Multisite to a subdirectory
- Cookies in multisite where network sites have their own domain name
- Convert a Multisite WordPress install into a Single site
- WordPress MultiSite Active Directory integration and site privacy
- WordPress Job Interview Preparation
- How to add Custom Blog Options to new blog setup form?
- How can I trust switch_to_blog()?
- Remove the blog slug from WordPress Multisite root node
- Why are my roles not visible in a Multi-site/Network?
- Site admin in a network install can’t edit users?
- How to use same email for multiple users
- How to run an activation function when plugin is network activated on multisite?
- Specific upload folder for PDFs in custom Post type in WP multisite
- What is the correct way to map multiple domains in a WordPress 4.1 multisite install?
- Where can I find documentation on what characters are allowed in user names and why?
- How to migrate subsite from dev multisite to production multisite
- How can I un-reserve a pending username registration?
- How do I remove/delete an old super admin user?