Wordpress apache2 virtual host configuration on a debian install

admin

Administrator
Staff member
I'm trying to setup a wordpress site on my server that also hosts another website. I can only get the wordpress site to work with the web address
Code:
blog.murmilosoftware.com/wp
.

I want to be able to simply access it from
Code:
blog.murmilosoftware.com
.

The problem is when I type
Code:
blog.murmilosoftware.com
in right now it displays the same page that is available from
Code:
murmilosoftware.com
.

I have attached both of the sites-available config files from
Code:
/etc/apache2/sites-available
.

<strong>blog.murmillosoftware.com.conf</strong>

Code:
Alias /wp/wp-content /var/lib/wordpress/wp-content
Alias /wp /usr/share/wordpress
&lt;Directory /usr/share/wordpress&gt;
    Options FollowSymLinks
    AllowOverride Limit Options FileInfo
    DirectoryIndex index.php
    Require all granted
&lt;/Directory&gt;
&lt;Directory /var/lib/wordpress/wp-content&gt;
    Options FollowSymLinks
    Require all granted
&lt;/Directory&gt;

<strong>murmillosoftware.com.conf</strong>

Code:
&lt;VirtualHost *:80&gt;
    ServerAdmin [email protected]
    ServerName murmillosoftware.com
    ServerAlias www.murmillosoftware.com
    DocumentRoot /var/www/html
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
&lt;/VirtualHost&gt;

<blockquote>
Forgot to restart my apache service. It is working now.
</blockquote>