Apache virtual servers
Damien Hull
dhull at digitaloverload.net
Tue Nov 20 19:14:40 UTC 2007
I am trying to setup SquirrelMail. My main site should be something like
www.example.com or example.com. To get to my webamil it should be
something like webamil.example.com. I hope there is a way to do this.
Here's what I have so far.
Network
* Ripcord
* DMZ ( orange interface )
* Web server
* DNS server
Server
* Gutsy Gibbon
* LAMP install
* Email
* SquirrelMail
* Webmin
Problem
* I tried adding a virtual server for SquirrelMail
* Didn't work
* It all goes to /var/www
* Or it gives me an error message
Here's what's in /etc/apache2/sites-available/default
NameVirtualHost *
<VirtualHost 192.168.2.3>
ServerName www.testing-linux.com
DocumentRoot /var/www
</VirtualHost>
<VirtualHost 192.168.2.3>
ServerName webamil.testing-linux.com
DocumentRoot /usr/share/squirrelmail
</VirtualHost>
The above settings gave me an error message. I have also tried the
following.
NameVirtualHost *
<VirtualHost *>
ServerName www.testing-linux.com
DocumentRoot /var/www
</VirtualHost>
<VirtualHost *>
ServerName webamil.testing-linux.com
DocumentRoot /usr/share/squirrelmail
</VirtualHost>
It still didn't work. I hope someone out there can explain this to me.
I'm lost.
More information about the ubuntu-users
mailing list