Sorry for the top-posting....
I have made a vhost.conf file, like so:
NameVirtualHost *:80

<VirtualHost *:80>
    ServerAdmin [EMAIL PROTECTED]
    ServerName name.domain.tld
    ServerAlias domain.tld name.domain.tld
    DocumentRoot /path/to/root/folder

Start and stop apache2 and can access name.domain.tld just as i am suppose to 
and see the correct site.
I have another vhost that i need to config and when i do this one exactly like 
that last one, i get:
Starting httpd2 (prefork) [Fri Sep 07 19:41:01 2007] [warn] NameVirtualHost 
*:80 has no VirtualHosts

To clarify what i have done: i made a different vhost.conf (in 
/etc/apache2/vhost.d/new-file.conf) file like so:
NameVirtualHost *:80

<VirtualHost *:80>
    ServerAdmin [EMAIL PROTECTED]
    ServerName differentname.domain.tld
    ServerAlias domain.tld differentname.domain.tld
    DocumentRoot /path/to/root/folder

I have also tried to combine this vhost conf into the one that works. when 
doing this, i do not get that error on restart of apache2 but i do not see the 
correct site. What am i doing wrong? Am i making the correct conf files in the 
right file or should it be made in httpd? Thanks for everything

Chris
----- Original Message -----
From: "Sander Temme" <[EMAIL PROTECTED]>
To: users@httpd.apache.org
Sent: Friday, September 7, 2007 6:39:09 PM (GMT-0500) America/New_York
Subject: Re: [EMAIL PROTECTED] 1 IP with multiple sites


On Sep 7, 2007, at 3:21 PM, Chris Arnold wrote:

> We only have 1 ip here and are looking to have a couple different  
> sites with different DNS names on SLES10 SP1 with apache2 2.2.3.  
> Allow me to describe it like this:
> joeblow.com points to our 1 ip and so does ilikedogs.com. How would  
> we get people that want to get to joeblow.com to joeblow.com and  
> not ilikedogs.com? 1 ip and on the same port, is there a way to  
> accomplish this with apache2?

Bread and butter. See http://httpd.apache.org/docs/2.2/vhosts/ or,  
more specifically:

http://httpd.apache.org/docs/2.2/vhosts/name-based.html

S.

-- 
Sander Temme
[EMAIL PROTECTED]
PGP FP: 51B4 8727 466A 0BC3 69F4  B7B8 B2BE BC40 1529 24AF





---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to