You were right! The problem was with http.conf.
But changing it is not really an optimal solution to me.
The thing is: I'm using a server that is inside a network, so that the
box connected to the internet uses iptables to redirect a port to the
internal server's http port. The thing is, from inside the network,
this redirection does not work. Which means that now all other people
can see my wiki, except for me!! That is because the ServerName is
something that must be resolved (=not localhost), and that (when
resolved) points to the main server on the local network.
Is there something I can do about this? I'm no expert, maybe it is
possible to change something on http.conf, or iptables or even
mediawiki...
Thanks, anyway.
Roberto.
On Fri, 5 Nov 2004 10:33:35 -0800, Brion Vibber <brion(a)pobox.com> wrote:
On Nov 5, 2004, at 6:32 AM, Roberto Winter wrote:
But when I try
to access the page from outside I get lots of errors, because I'm
constantly being redirected to localhost... and I have no idea why.
Apache thinks its canonical hostname is "localhost". It is mistaken in
this impression, so set the ServerName directive in httpd.conf to the
correct hostname to disabuse it of this notion.
If for some reason this fails to produce the correct autodetected value
in MediaWiki, override $wgServer with 'http://my.host.name';
-- brion vibber (brion @
pobox.com)