# Wordpress Multisite Issue

**URL:** <https://community.letsencrypt.org/t/wordpress-multisite-issue/80639>\
**Category:** Help\
**Created:** [December 21, 2018, 1:28am UTC](https://community.letsencrypt.org/t/wordpress-multisite-issue/80639 "2018-12-21T01:28:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![oguruma](https://avatars.discourse-cdn.com/v4/letter/o/54ee81/32.png) [@oguruma](https://community.letsencrypt.org/u/oguruma)\
**Post date:** [December 21, 2018, 1:28am UTC](https://community.letsencrypt.org/t/wordpress-multisite-issue/80639/1 "2018-12-21T01:28:35Z")

</div>

My domain is: [boosterclubnetwork.com](http://boosterclubnetwork.com) [madisonboosters.com](http://madisonboosters.com)

My web server is (include version): Apache2

The operating system my web server runs on is (include version): Ubuntu 18.04

My hosting provider, if applicable, is: Linode VPS

I can login to a root shell on my machine (yes or no, or I don’t know): Yes

I’m using a control panel to manage my site (no, or provide the name and version of the control panel): No

I want to run multisite on a Ubuntu VPS using LAMP. I want to support subsite domains as well as custom URLs. I am using letsencrypt.

I couldn’t figure out my virtualhost file, so I let my friend take a swing at it, now it’s jacked up even worse.

I am having 2 problems.

1. The url [boosterclubnetwork.com](http://boosterclubnetwork.com) (or [www.boosterclubnetwork.com](http://www.boosterclubnetwork.com)) loads a completely different site on the same server.

2. I get a certificate domain mismatch (this seems to be obviously related to the fact that the wrong site is loading).

\<VirtualHost \*:80\>  
# The ServerName directive sets the request scheme, hostname and port that  
# the server uses to identify itself. This is used when creating  
# redirection URLs. In the context of virtual hosts, the ServerName  
# specifies what hostname must appear in the request’s Host: header to  
# match this virtual host. For the default virtual host (this file) this  
# value is not decisive as it is used as a last resort host regardless.  
# However, you must set it for any further virtual host explicitly.  
ServerName [www.boosterclubnetwork.com](http://www.boosterclubnetwork.com)  
ServerAlias [boosterclubnetwork.com](http://boosterclubnetwork.com)

```
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/boosterclubnetwork.com/public_html

```

\<Directory /var/www/\>  
Options Indexes FollowSymLinks  
AllowOverride All  
Require all granted

```
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf

```

RewriteEngine on  
RewriteCond %{SERVER\_NAME} =[www.boosterclubnetwork.com](http://www.boosterclubnetwork.com) [OR]  
RewriteCond %{SERVER\_NAME} =[boosterclubnetwork.com](http://boosterclubnetwork.com)  
RewriteRule ^ https://%{SERVER\_NAME}%{REQUEST\_URI} [END,NE,R=permanent]

\<VirtualHost \*:80\>  
DocumentRoot /var/www/html/boosterclubnetwork.com/public\_html  
ServerName [www.madisonboosters.com](http://www.madisonboosters.com)  
ServerAlias [madisonboosters.com](http://madisonboosters.com)

```
# not required Alias /mysite-2.dev "/home/mysite-2"
<Directory /var/www/html/boosterclubnetwork.com/public_html>
    Options Indexes FollowSymLinks Includes ExecCGI
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>

```

RewriteEngine on  
RewriteCond %{SERVER\_NAME} =[www.madisonboosters.com](http://www.madisonboosters.com) [OR]  
RewriteCond %{SERVER\_NAME} =[madisonboosters.com](http://madisonboosters.com)  
RewriteRule ^ https://%{SERVER\_NAME}%{REQUEST\_URI} [END,NE,R=permanent]

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/letsencrypt/original/3X/c/a/ca6c06ea1ea201324bba7048c6841ce60236468d.png) [@system](https://community.letsencrypt.org/u/system)\
**Post date:** [January 20, 2019, 1:28am UTC](https://community.letsencrypt.org/t/wordpress-multisite-issue/80639/2 "2019-01-20T01:28:41Z")

</div>

Closed on January 20, 2019, 1:28am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
