Go Back   DaemonForums > FreeBSD > FreeBSD Ports and Packages

FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD.

Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 15th February 2009
DNAeon DNAeon is offline
Shell Scout
Join Date: Sep 2008
Location: Bulgaria
Posts: 138
Default Apache 2.2 + vhosts


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

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
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
    ErrorLog /var/log/httpd-error.log
    CustomLog /var/log/httpd-access.log combined

# 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
    ErrorLog /var/log/httpd-error.log
    CustomLog /var/log/httpd-access.log combined
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
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?

"I never think of the future. It comes soon enough." - A.E

Useful links: FreeBSD Handbook | FreeBSD Developer's Handbook | The Porter's Handbook | PF User's Guide | unix-heaven.org
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP 5.2.6 and Apache 1.3 dialeight OpenBSD Packages and Ports 1 15th June 2009 03:04 AM
Upgrade Apache 1.3 mod_ssl to Apache 2.2 beandip FreeBSD Ports and Packages 11 26th March 2009 09:12 PM
apache error .. vhosts and access edhunter FreeBSD General 21 19th July 2008 10:24 PM
Apache 1.3 vs. 2.2 windependence FreeBSD General 4 16th June 2008 10:10 PM
Apache SSL mike171562 FreeBSD General 0 5th May 2008 09:41 PM

All times are GMT. The time now is 01:24 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick