[NTLUG:Discuss] Apache Config Question
Jeremy Blosser
jblosser-ntlug at firinn.org
Mon Dec 27 08:20:17 CST 1999
Victor Brilon [victor at vail.net] wrote:
> On 27-Dec-1999 lee wrote:
> > I used to run an older version of apache -- and there was some kind
> > of config option (directive maybe?) where if someone put
> > "http://bigapple.com" in their browser, you could direct the server
> > to return "http://www.BigApple.com" (or whatever you desired) and it
> > would show in the browser that way.
> >
> Read the online manual that got installed with your Apache server. The option
> you're looking for is called: ServerName. Note that to use this effectively,
> you'll need to set up virtual hosts for all the different names you want to
> accept and have all those virtual hosts return the same ServerName.
Even with ServerName set, you'll also need to have UseCanonicalName on for
it to have any affect like you want. And it'll still only get changed if
they pass an incomplete URL to the server, requiring it to create it's own
URL (eg. http://www.example.com vs. http://www.example.com/). To change
all requests you'll prolly need some form of redirection.
--
Jeremy Blosser | jblosser at firinn.org | http://jblosser.firinn.org/
-----------------+-------------------------+------------------------------
"If Microsoft can change and compete on quality, I've won." -- L. Torvalds
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 366 bytes
Desc: not available
Url : http://ntlug.org/pipermail/discuss/attachments/19991227/a2f219f0/attachment.bin
More information about the Discuss
mailing list