[Mediawiki-l] Apache virtual hosts
Arthur Guy
Arthur at assys.net
Fri Jun 2 21:57:51 UTC 2006
One way you can do this is setup another virtual host at the top of the
list of virtual hosts which responds to the default address
http://mysite only and includes a permanent redirect to the full
address.
Redirect / http://mysite.example.org/
Arthur
arthur at assys.net
-----Original Message-----
From: mediawiki-l-bounces at Wikimedia.org
[mailto:mediawiki-l-bounces at Wikimedia.org] On Behalf Of Michael Roach
Sent: 02 June 2006 22:28
To: MediaWiki announcements and site admin list
Subject: [Mediawiki-l] Apache virtual hosts
I have a box running mediawiki and am now using virtual hosts on it to
enable me to have a test version of the site running on port 8080. What
is
the "proper" way to force visitors to use the full server dns name? So,
if
I browse to 'http://mysite' the production wiki pops up and
'http://mysite:8080' the test wiki is shown. works great. love it. Now
what I want to happen is that when a visitor goes to 'http://mysite'
they
get redirected to 'http://mysite.example.org' and going to
'http://mysite:8080' takes them to 'http://mysite.example.org:8080'.
Basically, I want them to always be using the full canonical host name.
I'm not sure how to setup a redirect like this in Apache2.
Any tips would be appreciated.
Thanks,
Michael
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l at Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
More information about the MediaWiki-l
mailing list