httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arun G Nair <arungn...@gmail.com>
Subject Re: [users@httpd] Both IP based and name based virtual host on same server.
Date Tue, 13 Sep 2005 12:23:18 GMT
For certificates - http://slacksite.com/apache/certificate.html

BTW, I have a spare IP. But can't get ssl to work. Relevant parts from 
httpd.conf include:

----httpd.conf-----

Listen 172.16.2.0:80 <http://172.16.2.0:80>
Listen 172.16.2.10:443 <http://172.16.2.10:443>
----skip----
########## mod_ssl ##########
<IfModule mod_ssl.c>
     AddType application/x-x509-ca-cert .crt
     AddType application/x-pkcs7-crl .crl
</IfModule>
########## mod_ssl ##########
-----skip-----

########## mod_ssl ##########
<IfModule mod_ssl.c>
        SSLCACertificateFile /etc/apache/ssl.crt/ca-bundle.crt
        SSLPassPhraseDialog builtin
        SSLSessionCache dbm:/var/run/ssl_scache
        SSLSessionCacheTimeout 300
        SSLMutex file:/var/run/ssl_mutex
        SSLRandomSeed startup builtin
        SSLRandomSeed connect builtin
</IfModule>
########## mod_ssl ##########
---skip----

NameVirtualHost 172.16.2.0:80 <http://172.16.2.0:80>
 
<VirtualHost *>
        ServerName devsrv
        DocumentRoot /var/www
</VirtualHost>
 
<VirtualHost *>
        ServerName www.abcnew.com <http://www.abcnew.com>
        DocumentRoot /var/www/newabc
</VirtualHost>
 
<VirtualHost *>
        ServerName abcn.com <http://abcn.com>
        DocumentRoot /var/www/abc
</VirtualHost>
 
----skip----
 
# SSL Virtual Hosts
<IfDefine SSL>
 
<VirtualHost 172.16.2.10:443 <http://172.16.2.10:443>>
DocumentRoot /var/www/abc
ServerName secure.abcn.com <http://secure.abcn.com>
SSLEngine on
SSLCertificateFile    /etc/apache/ssl.crt/server.crt
SSLCertificateKeyFile /etc/apache/ssl.key/server.pem
CustomLog /var/log/ssl_request_log \
        "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
</VirtualHost>
 
</IfDefine>

----httpd.conf-----

Regards,
Arun

Mime
View raw message