Last modified: 2010-05-15 15:32:58 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T3749, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 1749 - Redirected to "default" after saving page
Redirected to "default" after saving page
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.4.x
PC FreeBSD
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
http://212.32.243.132/wiki/index.php/...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-03-24 15:36 UTC by Brian Keetman
Modified: 2010-05-15 15:32 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Brian Keetman 2005-03-24 15:36:30 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.
Comment 1 Brion Vibber 2005-03-26 11:25:08 UTC
What does 'to "default"' mean?

Linked URL appears to be offline, so cannot test.

Ensure that Apache's ServerName directive is not incorrectly set.
Comment 2 Brian Keetman 2005-03-26 20:00:36 UTC
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
Comment 3 Antoine "hashar" Musso (WMF) 2005-03-26 20:09:24 UTC
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".
Comment 4 Brian Keetman 2005-03-26 20:33:40 UTC
Thank you, that seemed to be the problem!

Works fine now. 

Much thanks!

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links