Last modified: 2010-05-15 15:32:59 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 T3884, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 1884 - 'save' on page redirects to local host
'save' on page redirects to local host
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Page editing (Other open bugs)
1.4.x
PC Windows XP
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-04-13 13:09 UTC by N. Berntsen
Modified: 2010-05-15 15:32 UTC (History)
0 users

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


Attachments

Description N. Berntsen 2005-04-13 13:09:25 UTC
I have installed wiki 1.4.0: (I have installed mediawiki before on another
machine without that kind of problem)

 1874413 Mar 20 23:11 mediawiki-1.4.0.tar.gz

Installation went well, but when I edit a page, enter some text and save it, it
make a correct POST, but the following get is to localhost. I have tried to
change various variables from localhost/127.0.0.1 to the ip of the server. but
to no avail.

If I connect from a browser on the machine with the mediawiki-installation I get
the following two hits in my apache2 access_log:

127.0.0.1 - - [13/Apr/2005:10:37:56 -0400] "POST /wiki/index.php?title=Main_Page
&action=submit HTTP/1.1" 302 26 "http://127.0.0.1/wiki/index.php?title=Main_Page
&action=edit" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041105 
Firefox/1.0RC2"
127.0.0.1 - - [13/Apr/2005:10:37:58 -0400] "GET /wiki/index.php/Main_Page HTTP/1
.1" 200 2159 "http://127.0.0.1/wiki/index.php?title=Main_Page&action=edit" "Mozi
lla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041105 Firefox/1.0RC2"


If I do it from a remote machine (on the same LAN) I only get a hit
corresponding to the POST:

192.168.1.50 - - [13/Apr/2005:10:38:31 -0400] "POST
/wiki/index.php?title=User:Berntsen&action=submit HTTP/1.1" 302 26
"http://192.168.1.6/wiki/index.php?title=User:Berntsen&action=submit"
"Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050319"

Then I get a popup window with access to 127.0.0.1 denied. My page does not
change, but if I reload the page I saved, my changes are in it.

It might be related, that if I try and get index.php I get the following error:

$ lynx --source http://192.168.1.6/wiki/index.php

Looking up 192.168.1.6
Making HTTP connection to 192.168.1.6
Sending HTTP request.
HTTP request sent; waiting for response.
HTTP/1.1 301 Moved Permanently
Data transfer complete
HTTP/1.1 301 Moved Permanently
Looking up 127.0.0.1
Making HTTP connection to 127.0.0.1
Alert!: Unable to connect to remote host.

lynx: Can't access startfile http://192.168.1.6/wiki/index.php

The above request yields the following in the apache access_log

192.168.1.50 - - [13/Apr/2005:11:07:12 -0400] "GET /wiki/index.php HTTP/1.0" 301
26 "-" "Lynx/2.8.4rel.1 libwww-FM/2.14 SSL-MM/1.4.1 OpenSSL/0.9.7b"


If I try and get the Main_Page, it is successful:

lynx --source http://192.168.1.6/wiki/index.php/Main_Page > Main_Page.html

In the log it looks like:

192.168.1.50 - - [13/Apr/2005:11:08:48 -0400] "GET /wiki/index.php/Main_Page
HTTP/1.0" 200 2177 "-" "Lynx/2.8.4rel.1 libwww-FM/2.14 SSL-MM/1.4.1 OpenSSL/0.9.7b"

(I wont paste it, unless helpful)?

I hope you can help out (and I hope its not a local configuration error that I
am wasting your time on).
Comment 1 Brion Vibber 2005-04-13 13:14:37 UTC
Set Apache's ServerName directive correctly in httpd.conf.

Alternatively, override the autodetected $wgServer value in LocalSettings.php.
Comment 2 N. Berntsen 2005-04-15 10:23:29 UTC
Thanks a lot for the apache help. To my "defense" I can tell that I never
changed the default of Apache's ServerName. I have installed multiple OSS
plugins and stuff for apache and never had that problem. Priorily I had
installed mediawiki on a site, where I installed it as virtual host where I had
set the ServerName properly.

May I suggest to add a check to the already pretty intelligent installer?

Anyway, thanks for the swift and helpful response.

/\/ikolaj
Comment 3 JeLuF 2005-04-15 13:01:35 UTC
On my laptop, apache is configured with ServerName "localhost", and I want it to
be like that. 
I wouldn't be to happy if the installer would refuse to install.

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


Navigation
Links