I have set up the a subdomain for mediawiki as mediawiki.mydomain.com, and I can access mediawiki through that address both internally and externally. Now I want replace mediawikis url with mywiki.mydomain.com. I changed
/var/hda/web-apps/mediawiki/html/LocalSettings.php
Code: Select all
## The protocol and server name to use in fully-qualified URLs
$wgServer = "http://mediawiki.mydomain.com";
Code: Select all
## The protocol and server name to use in fully-qualified URLs
$wgServer = "http://mywiki.mydomain.com";
And for /etc/httpd/conf.d/1003-mediawiki.conf
Code: Select all
<VirtualHost *:80>
ServerName mediawiki
ServerAlias mediawiki.mydomain.com
Code: Select all
<VirtualHost *:80>
ServerName mediawiki
ServerAlias mediawiki.mydomain.com
ServerAlias mywiki.mydomain.com
I want the address to work both inside and outside my network. What am I doing wrong?