Re: [users@httpd] Both IP based and name based virtual host on same server.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
Listen 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
 
<VirtualHost *>
ServerName devsrv
DocumentRoot /var/www
</VirtualHost>
 
<VirtualHost *>
ServerName www.abcnew.com
DocumentRoot /var/www/newabc
</VirtualHost>
 
<VirtualHost *>
ServerName abcn.com
DocumentRoot /var/www/abc
</VirtualHost>
 
----skip----
 
# SSL Virtual Hosts
<IfDefine SSL>
 
<VirtualHost 172.16.2.10:443>
DocumentRoot /var/www/abc
ServerName 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


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux