Apache Server configuration support - Setting up Server Name to a 'http://' URL

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > August 2004 > Setting up Server Name to a 'http://' URL





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Setting up Server Name to a 'http://' URL
Katerina McLean

2004-08-22, 6:25 pm

Hi there:

How do I set up the server name in httpd.conf if the url does not have
'www' in it?

i.e. the url is 'http://somewhere.here.com'.

Will the change below work? I hope to test this but I am waiting for the
URL to propagate.

<VirtualHost 100.000.000>
DocumentRoot "/local/apache/htdocs"
ServerName http://somewhere.here.com
ServerAdmin me@here.com
#ServerAlias *
ErrorLog /local/apache/logs/error_log
TransferLog /local/apache/logs/access_log
</VirtualHost>

Thanks for your help

Kate
Davide Bianchi

2004-08-24, 10:13 pm

On 2004-08-17, Katerina McLean <Cat@nospam.com> wrote:
> How do I set up the server name in httpd.conf if the url does not have
> 'www' in it?


The domain/host name doesn't matter. brain-damaged browser like
Internet Explorer assume that you want http if the domain name start
with www, otherwise they don't know what to do.

As a rule of thumb, if you have a DNS entry pointing to your server,
you can type that URL in your browser and he will find the server.

> ServerName http://somewhere.here.com


The server name is the server name (somewhere.here.com), http:// is the
protocol, take it out.

Davide

--
Polymer physicists are into chains.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com