I had mediawiki installed and apache listening on port 9997 accessed via
example.com:9997/mediawiki
Mediawiki is under /var/www/html/mediawiki. So I wanted to change it to port 80. I changed /etc/apache2/ports.conf
Listen 80
#Listen 9997
I then changed $wgServer which is under /var/www/html/mediawiki/LocalSettings.php
$wgServer = "http:/example.com:80";
According to the documentation, this should be all I have to do. Upon restart of apache, I can now see the default index.html of apache when I go to port 80 so I know that it's working. However, http://example.com/mediawiki results in a 404 -
The requested URL /html/mediawiki/index.php/Main_Page was not found on this server.
This indicates to me that it is forwarding mediwiki to mediwiki/index.php and creating the Main_Page but something is going wrong. I can see in the apache access.log .
example.com - - [05/Nov/2014:22:21:27 -0800] "GET /html/mediawiki/index.php/Main_Page HTTP/1.1" 404 528 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/"
I'm not sure if the access file helps but I am stumped.