Stripping DomainName in Virtual Hosting

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

 



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


Thanks
Paul L. Ketcham
Life University/OIT Dept.

[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