RE: Apache Config

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

 



Sure--here here's my VirtualHost section.  One thing to check...I used the
gnome GUI HTTP Services interface to configure things at first...before
posting to this site.  This put some things in my httpd conf file that I had
to delete in order for the following entries to take precedence.  I had the
same problem you're having until I deleted those.

NameVirtualHost 192.168.1.2
 
<VirtualHost 192.168.1.2>
ServerName www.domain1.com
ServerAdmin webmaster@xxxxxxxxxxx
DocumentRoot /var/www/domain1
DirectoryIndex index.htm
ServerName host.domain1.com
ServerAlias domain1.com *.domain1.com
ErrorLog logs/host.domain1.com-error_log
TransferLog logs/host.domain1.com-access_log
</VirtualHost>

<VirtualHost 192.168.1.2>
ServerName www.domain2.com
ServerAdmin webmaster@xxxxxxxxxxx
DocumentRoot /var/www/domain2
DirectoryIndex index.htm
ServerName host.domain2.com
ServerAlias domain2.com *.domain2.com
ErrorLog logs/host.domain2.com-error_log
TransferLog logs/host.domain2.com-access_log
</VirtualHost>
 
<VirtualHost 192.168.1.2>
ServerName www.domain3.com
ServerAdmin webmaster@xxxxxxxxxxx
DocumentRoot /var/www/domain3
DirectoryIndex index.htm
ServerName host.domain3.net
ServerAlias domain3.net *.domain3.net
ErrorLog logs/host.domain3.net-error_log
TransferLog logs/host.domain3.net-access_log
</VirtualHost>

-----Original Message-----
From: shrike-list-admin@xxxxxxxxxx [mailto:shrike-list-admin@xxxxxxxxxx] On
Behalf Of Rob Kirkbride
Sent: Friday, October 03, 2003 8:52 AM
To: shrike-list@xxxxxxxxxx
Subject: Re: Apache Config


Any chance you could share your VirtualHost section with us? When I 
tried mine on my server at home I couldn't get it to fly properly. I've 
not had time to fully investigate but basically both domains keep 
resolving to the first VirtualHost. It was like the URL was being sent 
by the browser properly or something.

Thanks,

Rob

Corey Head wrote:

>Thanks Brian!  This is exactly what I was looking for.  I didn't know what
>to call it, so I didn't know what to look for.  It's all set and working
>nice and pertty!
>Thanks!
>Corey
>
>-----Original Message-----
>From: shrike-list-admin@xxxxxxxxxx [mailto:shrike-list-admin@xxxxxxxxxx] On
>Behalf Of Brian Schmidt
>Sent: Friday, October 03, 2003 7:27 AM
>To: shrike-list@xxxxxxxxxx
>Subject: Re: Apache Config
>
>
>On Fri, 3 Oct 2003, Corey Head wrote:
>
>  
>
>>However, now I want to host multiple web sites at one IP Address on this
>>    
>>
>one
>  
>
>>server. Can this be done? I have heard it can, but haven't found anything
>>out there about configuring Apache to host 3 or more web sites. I'm
>>    
>>
>guessing
>  
>
>>I need to point
>>    
>>
>
>I think you're looking for this:
>http://httpd.apache.org/docs/vhosts/
>
>  
>
>>web1.domain1.com to one folder
>>web2.domain2.com to another folder
>>web3.domain3.com to yet another folder
>>
>>So...how can this be done? Any help would be GREATLY appreciated.
>>Thanks!
>>Corey
>>
>>
>>--
>>Shrike-list mailing list
>>Shrike-list@xxxxxxxxxx
>>https://www.redhat.com/mailman/listinfo/shrike-list
>>
>>    
>>
>
>bts@xxxxxxxxxxxxxxxx
>SDF Public Access UNIX System - http://sdf.lonestar.org
>
>
>  
>



-- 
Shrike-list mailing list
Shrike-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/shrike-list


-- 
Shrike-list mailing list
Shrike-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/shrike-list

[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux