Re: 1 IP with multiple sites

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

<VirtualHost *:80>
    ServerAdmin email@xxxxxxxxxxx
    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@xxxxxxxxxxx
    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" <sctemme@xxxxxxxxxx>
To: users@xxxxxxxxxxxxxxxx
Sent: Friday, September 7, 2007 6:39:09 PM (GMT-0500) America/New_York
Subject: Re:  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
sctemme@xxxxxxxxxx
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: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux