Byortek wiki wrote:
From: "Brion Vibber"
<brion(a)pobox.com>
Did you set the ServerName directive correctly in
httpd.conf (or your
<VirtualHost> section)?
I haven't set the ServerName nor any <VirtualHost> section.
Then Apache will probably be autodetecting your hostname (smallpc.home)
and using that.
However I placed a simple test.html file in the wiki
dir and
apache returned that page immediately. There is not these two
redirections of the wiki main page.
Well, let's look at that trace in detail:
C->S GET /wiki HTTP/1.1 Host: smallpc.dyndns.org:8081
S->C HTTP/1.1 301 Moved Permanently <blah blah> Location:
http://smallpc.home:8081/wiki
MediaWiki would never send you here; this looks like something Apache
would do, for instance if UseCanonicalName is on and it's detected
smallpc.home as the hostname. Note that you're asking for a *directory*
without the final slash; this is an action that will produce a redirect
under just about any configuration.
C->S GET /wiki HTTP/1.1 Host: smallpc.home:8081
S->C HTTP/1.1 301 Moved Permanently <blah blah> Location:
http://smallpc.dyndns.org:8081/wiki/index.php/Accueil
This is MediaWiki telling you to go to the main page.
C->S GET wiki/index.php/Accueil HTTP/1.1 Host: smallpc.dyndns.org:8081
S->C <the wiki page ...>
And here's the main page itself.
-- brion vibber (brion @
pobox.com)