Re: Stripping DomainName in Virtual Hosting

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

 



I looked back at the httpd.conf and found the error in the file.

I didn't name the first site. Highlighted at the bottom in Red.

Thank You Very Much

Paul L. Ketcham
Life University/OIT


Ben Yau wrote:
What is your life.edu virtualhost config look like? 
 
Is it possible that www.student.life.edu matches an earlier serveralias or wilcard?  (like perhaps www.*life.edu or something like that?).  I went to your websites and saw that student.life.edu seemed to return back the proper page but www.student.life.edu took me to www.life.edu

Ben Yau

=================================
310.235.2500 x232
Card Commerce International, Inc.
http://www.cardcommerce.com
=================================
 

-----Original Message-----
From: redhat-list-admin@xxxxxxxxxx [mailto:redhat-list-admin@xxxxxxxxxx]On Behalf Of Paul L. Ketcham
Sent: Thursday, January 08, 2004 3:54 PM
To: redhat-list@xxxxxxxxxx
Subject: Stripping DomainName in Virtual Hosting

    Hi Everyone,

    I am having a problem and not having any luck searching on the web. I am running 2 domains life.edu + lifesourceseminars.com. Running both of them on one server using Virtual Hosting. Everything is working fine intill I wanted to transfer another web page using the same domain (www.student.life.edu). But, It kept stripping the www. off.  The way it stands now when I look up www.student.life.edu (nothing) but when I look up student.life.edu (Good). I have had to do similar things to my mail server using Parameter: masquerade_domains  I am sure there is a easy fix for this but I am clueness.

#Virtual host Default Virtual Host
<VirtualHost 172.23.1.37:80 >
    DocumentRoot /var/www/html/
     ServerSignature email
    DirectoryIndex  index.php index.html index.htm index.shtml
           ServerName www.life.edu
           ServerAlias life.edu

           LogLevel  warn
     HostNameLookups off
</VirtualHost>
<VirtualHost 172.23.1.37:80>
    DocumentRoot /var/www/lifesourceseminars/
    DirectoryIndex  index.php index.html index.htm index.shtml
    ServerName www.lifesourceseminars.com
    ServerAlias lifesourceseminars.com
</VirtualHost>
<VirtualHost 172.23.1.37:80>
        DocumentRoot /var/www/student/
        DirectoryIndex  index.php index.html index.htm index.shtml
        ServerName www.student.life.edu
        ServerAlias student.life.edu
</VirtualHost>
 
 

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux