Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian User (http://www.linux-archive.org/debian-user/)
-   -   virtual host weird problem.. (http://www.linux-archive.org/debian-user/65629-virtual-host-weird-problem.html)

paragasu 04-07-2008 03:47 PM

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
</VirtualHost>


thank you

Steve Kemp 04-07-2008 04:17 PM

virtual host weird problem..
 
On Mon Apr 07, 2008 at 23:47:21 +0800, paragasu wrote:

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

Add:

ServerAlias www.example.ocm

Otherwise the first site on the host will be used.

Steve
--
Managed Anti-Spam Service
http://mail-scanning.com/


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


All times are GMT. The time now is 05:01 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.