In Debian I am trying to move a wiki site that is on a subdomain of my main site to the sites path: wiki.mysite.com to mysite.com/wiki.
I had two dns records: wiki.mysite.com and mysite.com
and also had two conf files under apache:
wiki.mysite.com.conf
mysite.com.conf
And had the website directories:
/var/www/html/www.mysite.com
/var/www/html/www.wiki.mysite.com
Everything was working well. I now need to move the wiki site underneath the path of the main site to www.mysite.com/wiki... I have attempted to make the following updates to mysite.com.conf, but after restarting apache I am getting a "Not Found: The requested URL was not found on this server" when trying to access mysite.com/wiki (but mysite.com works fine). I HELP. WHAT DO? :
<VirtualHost *:80>
Server Admin webmaster@localhost
ServerName mysite.com
ServerAlias www.mysite.com
DocumentRoot /var/www/html/www.mysite.com
<Directory /var/www/html/www.mysite.com/>
AllowOverride All
</Directory>
<VirtualHost>
<VirtualHost *:80>
Server Admin webmaster@localhost
ServerName mysite.com/wiki
ServerAlias www.mysite.com/wiki
DocumentRoot /var/www/html/www.wiki.mysite.com
<Directory /var/www/html/www.wiki.mysite.com/>
AllowOverride All
</Directory>
<VirtualHost>
I have only added the second virtual host, the first was there originally when i had the site an subdomain site setup. To repeat myself the first virtual host still works.