Last modified: 2010-05-15 15:32:58 UTC
I tried searching for a similar bug but could not find it. Searched in the MediaWiki code and could not find what the problem is so decided to post it here, maybe more people are having the same problem. I did a normal install, like described. After the install i wanted to visit the wiki but when entering the url i was redirected to just "default" ( tried it in several browsers and computers ). ( link: http://212.32.243.132/wiki/index.php ) Als when wanting to save an edited page the same happens, but the changes i made are first saved. Browsing the Wiki gives no problem so far i can see... Any ideas? MediaWiki is installed on a FreeBSD machine.
What does 'to "default"' mean? Linked URL appears to be offline, so cannot test. Ensure that Apache's ServerName directive is not incorrectly set.
Sorry, link is online again: This is the Header information. You can see, it is forwarden to Location: http://default/wiki/index.php/Hoofdpagina This schould be Location: http://212.32.243.132/wiki/index.php/Hoofdpagina ----------------- http://212.32.243.132/wiki/ GET /wiki/ HTTP/1.1 Host: 212.32.243.132 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050317 Firefox/1.0.2 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive If-Modified-Since: Sat, 26 Mar 2005 20:05:38 GMT HTTP/1.x 301 Moved Permanently Date: Sat, 26 Mar 2005 20:05:54 GMT Server: Apache/1.3.29 Vary: Accept-Encoding,Cookie Expires: -1 Cache-Control: private, must-revalidate, max-age=0 Last-Modified: Sat, 26 Mar 2005 20:05:55 GMT Location: http://default/wiki/index.php/Hoofdpagina Content-Encoding: gzip Keep-Alive: timeout=15, max=100 Connection: Keep-Alive Transfer-Encoding: chunked Content-Type: text/html
You probably want to enter the IP address in the ServerName directive of your Apache configuration. $ /etc/apache/httpd.conf ServerName 212.32.243.132 Mediawiki 1.4 rely on the following code to detect your hostname: --------8<---------------------------------------- if( isset( $_SERVER['SERVER_NAME'] ) ) { $wgServerName = $_SERVER['SERVER_NAME']; } elseif( isset( $_SERVER['HOSTNAME'] ) ) { $wgServerName = $_SERVER['HOSTNAME']; } else { # FIXME: Fall back on... something else? $wgServerName = 'localhost'; } --------8<---------------------------------------- Maybe it got set as "default".
Thank you, that seemed to be the problem! Works fine now. Much thanks!