Hi,
I've been struggling with this for a while..
Running FreeBSD 7.1, Apache 2.2 - trying to create some vhosts for my domain - like for example mail.mydomain.net, lists.mydomain.net, etc..
This is what I've done so far - I've changed only this to /usr/local/etc/apache22/httpd.conf
Code:
Listen 80
ServerAdmin admin@mydomain.net
ServerName mydomain.net:80
# Virtual hosts
Include etc/apache22/extra/httpd-vhosts.conf
Include etc/apache22/extra/httpd-ssl.conf
#
# Note: The following must must be present to support
# starting without SSL on platforms with no /dev/random equivalent
# but a statically compiled-in mod_ssl.
#
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
Everything else is set by default.
And this is the /usr/local/etc/apache22/extra/httpd-vhosts.conf
Code:
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin admin@mydomain.net
DocumentRoot "/usr/local/www/apache22/data"
ServerName www.mydomain.net
ServerAlias mydomain.net www.mydomain.org
<Directory "/usr/local/www/apache22/data">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/httpd-error.log
CustomLog /var/log/httpd-access.log combined
</VirtualHost>
# Mailman mailing list domain.
#
<VirtualHost *:80>
ServerAdmin admin@mydomain.net
DocumentRoot "/usr/local/mailman"
ServerName lists.mydomain.net
ServerAlias lists.mydomain.net
ScriptAlias /cgi-bin/ "/usr/local/mailman/cgi-bin/"
ScriptAlias /mailman/ "/usr/local/mailman/cgi-bin/"
Alias /pipermail "/usr/local/mailman/archives/public"
Alias /icons "/usr/local/mailman/icons"
<Directory "/usr/local/mailman">
AllowOverride All
Options FollowSymlinks
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/httpd-error.log
CustomLog /var/log/httpd-access.log combined
</VirtualHost>
The problem is that if I go to
http://www.lists.mydomain.net/ or
http://lists.mydomain.net/mailman/listinfo ( this is still a fresh install of mailman, btw ) I get "Page Load Error" in Firefox ( or any other browser )
This is the output from
httpd -S
Code:
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
_default_:443 www.mydomain.net (/usr/local/etc/apache22/extra/httpd-ssl.conf:74)
*:80 is a NameVirtualHost
default server www.mydomain.org (/usr/local/etc/apache22/extra/httpd-vhosts.conf:30)
port 80 namevhost www.mydomain.net (/usr/local/etc/apache22/extra/httpd-vhosts.conf:30)
port 80 namevhost lists.mydomain.net (/usr/local/etc/apache22/extra/httpd-vhosts.conf:47)
Syntax OK
Here
mydomain.net is a real registered domain. Nothing in the logs. Can't figure out what is wrong? Any help?
Thanks!