[Mediawiki-l] Apache virtual hosts
Michael Roach
michael.roach at us.lawson.com
Fri Jun 2 21:28:25 UTC 2006
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
More information about the MediaWiki-l
mailing list