Is there a reason you duplicate www.nameofsite.co.uk in ServerAlias
when you already have it in ServerName? I've never actually done that
before in my httpd.conf file so I'm not sure what the ramifications
might be. I'd usually just put nameofsite.co.uk in ServerName and
then anything other hostnames the site should be accessible under in
ServerAlias.
On 12/16/05, Matthew Smith <[EMAIL PROTECTED]> wrote:
> Thanks, Ben. Here is an extract from the 'httpd.conf' file:
>
> <VirtualHost x.x.x.x>
> ServerName www.nameofsite.co.uk
> ServerAdmin [EMAIL PROTECTED]
> DocumentRoot /home/sites/www.nameofsite.co.uk/web
> ServerAlias nameofsite.co.uk www.name-of-site.co.uk name-of-site.co.uk
> ErrorLog /home/sites/www.nameofsite.co.uk/logs/error_log
> TransferLog "|rotatelogs /home/sites/www.nameofsite.co.uk/logs/access_log
> 604800
> LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""
> </VirtualHost>
>
> When accessing the Home Page, the browser automatically appends the '/' and
> then the page is displayed (plus the multiple log entries). When any other
> page is browsed, the URL becomes (for example):
>
> http://www.nameofsite.co.uk/index.cfm?fuseaction=about.index
>
> ....and you only get one log entry for the page.
>
> According to my (very basic) understanding of Apache, 'ServerName' shouldn't
> have a trailing '/'. Is there a global setting where this should be added for
> all domains or am I missing something?
>
> Apache is version 1.3.x
>
> Many thanks,
>
>
> Matt.
>
> > Just an odd thought -- are you accessing the site w/ the same *exact*
> > URL as specified in httpd.conf?
> > E.g. if your conf says: "http://www.google.com" (no trailing whack),
> > are you entering the same thing, or "http://www.google.com/" (trailing
> > whack) ... Or vice versa.
> >
> > I've heard in some configurations that this can result in a double-hit.
> >
> > --Ben
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Purchase Dreamweaver with Homesite Plus from House of Fusion, a Macromedia
Authorized Affiliate and support the CF community.
http://www.houseoffusion.com/banners/view.cfm?bannerid=54
Message: http://www.houseoffusion.com/lists.cfm/link=i:14:4097
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/14
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:14
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.14
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54