Apache configuration virtual host +SSL

  
under Linux 1. Download httpd software, compile Apache:

. /configure --enable-ssl (to enable SSL)

make

make install

2. httpd.conf put #Include conf/exta...vhosts. #除前#

Configured in vhosts.conf:

DocumentRoot:usr/local/w1

ServerName:www.shnu1.cn

Order deny,allow

allow from all

(Add access to the web page)

3.Windows system32 under the hosts file to add:

10.10.134.26 www.w1.com

10.10.134.26 www.w2.com

4. Create w1.htm and w2.htm in the w1 and w2 folders respectively
< BR> 5. Restart Apache: usr/local/apache2/bin/apachecl1 restart

6. Enter the w1.com and w2.com in the IE address bar respectively, test w1.htm and w2.htm
< BR> 7. Generate Certificate

cd /usr/local/apache2/conf

openssl req -new -x509 -nodes -out server.crt -keyout server.key

Open httpd-ssl.conf configuration in httpd.conf.
Copyright © Windows knowledge All Rights Reserved