Page 1 of 1

Changing the URL of mediawiki

Posted: Sun Jun 16, 2013 9:52 pm
by Spency
Hi,

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";
To

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
I added

Code: Select all

<VirtualHost *:80> ServerName mediawiki ServerAlias mediawiki.mydomain.com ServerAlias mywiki.mydomain.com
I can access the app from outside my network, but inside my network I my browser returns a "Page not found" error.
I want the address to work both inside and outside my network. What am I doing wrong?

Re: Changing the URL of mediawiki

Posted: Mon Jun 17, 2013 4:40 am
by bigfoot65
You might need a line that says mywiki up top. Not sure if this is doable with the current architecture, but you can try.