Support » Networking WordPress » Multisite on VPS: Virtualhost file

  • I need some help configuring my my virtualhost file for WordPress Multisite. I want to use subdomains instead of directories.

    I have enabled Multisite on boosterclubnetwork.com and the primary site boosterclubnetwork.com works fine.

    I added a site madison.boosterclubnetwork.com however that site does not load, rather it cannot find the /wp-admin page.

    I am assuming that this is because I do not have wildcards set up for the virtualhost file.

    Does anybody have an example of what the virtualhost file would look like?

Viewing 1 replies (of 1 total)
  • If you are using Apache httpd, mine looks like this (if using subdomains):

    
    <VirtualHost *:80>
        ServerName www.domain.com
        ServerAlias *.domain.com
        DocumentRoot /path/wp
    
        <Directory /path/wp>
            Options FollowSymLinks
            AllowOverride All
            Order allow,deny
            Allow from all
        </Directory>
    </VirtualHost>
    
    <VirtualHost *:443>
        ServerName www.domain.com
        ServerAlias *.domain.com
        DocumentRoot /path/wp
    
        SSLCertificateFile /certpath/cert.crt
        SSLCertificateKeyFile /certpath/cert.key
        SSLCertificateChainFile /certpath/chain.crt
    <snip a bunch of other configs>
    
        <Directory /path/wp>
            Options FollowSymLinks
            AllowOverride All
            Order allow,deny
            Allow from all
        </Directory>
    </VirtualHost>
    

    Note to support ssl, you will need a wildcard certificate or multi-domain certificate.

Viewing 1 replies (of 1 total)
  • The topic ‘Multisite on VPS: Virtualhost file’ is closed to new replies.