Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 02 Oct 2001 09:58:31 -0500
From:      Chris Cook <ccook@tcworks.net>
To:        freebsd-isp@freebsd.org
Cc:        Odhiambo Washington <wash@wananchi.com>
Subject:   Re: Non-SSL virtualhost
Message-ID:  <3BB9D617.1885E53@tcworks.net>
References:  <20011002125225.F73580@ns2.wananchi.com>

next in thread | previous in thread | raw e-mail | index | archive | help
We only run one config file for our Apache server, here is how we have
it setup (we run Apache-modssl):

<IfDefine SSL>
<VirtualHost x.x.x.x:443>
ServerAdmin blah@blah.com
DocumentRoot /usr/home/www/blah
ServerName www.blah.com
SSLEngine on
SSLCertificateFile /usr/local/etc/blah/ssl.crt/server.crt
SSLCertificateKeyFile /usr/local/etc/blah/ssl.key/server.key
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
</VirtualHost>
</IfDefine>

<VirtualHost x.x.x.x:80>
ServerAdmin blah@blah.com
DocumentRoot /usr/home/www/blah
ServerName www.blah.com
</VirtualHost>



Odhiambo Washington wrote:
> 
> Please let me ask this one since the answer is evading me.
> I run Apache-SSL but I also want to have a non-SSL virtualhost on it.
> https://name.domain.com/ runs fine. Now I want http://name.domain.com, so
> I added this to httpsd.conf
> 
> <VirtualHost name.domain.com:80>
>   SSLDisable
>   Port 80
>   ServerName name.domain.com
>   ServerAdmin admin@domain.com
>   DocumentRoot /usr/local/some_path
>   ErrorLog /var/log/imp-error_log
> # CustomLog /var/log/imp-access_log commom
>   TransferLog /var/log/imp-access_log
> </VirtualHost>
> 
> What am I missing, because after restarting apache the thing still wouldn't work?
> 
> Thanks in advance.
> 
> -Wash
>

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isp" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3BB9D617.1885E53>