In Linux, Apache configures the virtual host + SSL-Linux Enterprise Application-Linux server application information. The following is a detailed description. 1. Download the httpd software and compile Apache:
./Configure -- enable-ssl (to support SSL)
Make
Make install
2. in httpd. conf, remove # Before # Include conf/exta... vhosts. conf.
Configure in vhosts. conf:
DocumentRoot: usr/local/w1
ServerName: www.shnu1.cn
Order deny, allow
Allow from all
(Add webpage access permissions)
3. Add the following content to the hosts file in system32 of windows:
10.10.134.26 www.w1.com
10.10.134.26 www.w2.com
4. Create w1.htmand w2.htm separately under w1and w2folders.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service