FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

LinkBack Thread Tools
Old 04-07-2008, 03:47 PM
Default virtual host weird problem..

i have problem.
i setup the dns server like this for example
A record is example.com
CNAME www.example.com point to example.com

the problem is, it works fine if i type example.com in the url.
but if i use the domain www.example.com, it point to another site on the server.

do anyone have idea what happening...

<VirtualHost example.com>
*** ServerName example.com
*** DocumentRoot /var/www/example
*** ServerAdmin example@example.com

*** ErrorLog /var/log/apache2/example-error_log
*** CustomLog /var/log/apache2/example-access_log common

thank you
Old 04-07-2008, 04:17 PM
Steve Kemp
Default virtual host weird problem..

On Mon Apr 07, 2008 at 23:47:21 +0800, paragasu wrote:

> <VirtualHost example.com>
> ServerName example.com


ServerAlias www.example.ocm

Otherwise the first site on the host will be used.

Managed Anti-Spam Service

To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Thread Tools

All times are GMT. The time now is 04:58 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org