Changing the URL of mediawiki

Spency
Posts: 14
Joined: Wed May 29, 2013 12:58 pm

Changing the URL of mediawiki

Postby Spency » Sun Jun 16, 2013 9:52 pm

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?

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Changing the URL of mediawiki

Postby bigfoot65 » Mon Jun 17, 2013 4:40 am

You might need a line that says mywiki up top. Not sure if this is doable with the current architecture, but you can try.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

Who is online

Users browsing this forum: No registered users and 7 guests