Win7 How to deploy Apache servers (including SSL settings)

Source: Internet
Author: User

Deploy a normal site

1, first download apache24 version, for Http://pan.baidu.com/s/1pLmvDgB;

2, unzip to your local directory of the computer, such as D:\APACHE24 (the following configuration will be in the current directory as a reference)

3, modify the D:\Apache24\conf\ directory httpd.conf file       main modification points in the following aspects: (the previous # removed)        listen  8080;        ServerName 127.0.0.1:8080;         serverroot  "D:/apache24"         DocumentRoot  "D:/apache24/htdocs"        <Directory  "D:/apache24/htdocs" >       <ifmodule dir_module >          directoryindex index.html--the homepage file of the specified website       </IfModule>          <Directory  "D:/apache24/cgi-bin" >                 AllowOverride None                &NBSP;OPTIONS&N Bsp none                 Require all granted      &NBSP ;  </Directory>         include&Nbsp;conf/extra/httpd-vhosts.conf4, modify the httpd-vhosts.conf<virtualhost *:8080 under the D:\Apache24\conf\extra directory >    ServerAdmin [email protected]DocumentRoot "d:/apache24/htdocs/"--Place the site DirectoryServerName dummy-host.example.com serveralias szpc1928.morningstar.com errorlog "Logs/dummy-host.example.com-error. Log "Customlog" Logs/dummy-host.example.com-access.log "common</virtualhost>5, can place the site in the d:/apache24/htdocs/ You will be able to access the http://localhost/index.html Deploying an SSL site(1) You can follow these steps to generate the server private key and signing certificate http://dufei.blog.51cto.com/382644/90532/(2) Local Configuration modification D:\Apache24\conf\ httpd-ssl.conf file DocumentRoot under extra:--Modify the directory to place the site; Sslcertificatefile "D:/APACHE24/CONF/SERVER.CRT"; Sslcertificatekeyfile "D:/apache24/conf/server.key" <directory "D:/apache24/cgi-bin" > SSLOptions +StdEnvVars </Directory> Enter the following address to access the https://localhost/index.html of course, there may be some attention here and there is no point, you can go to the Apache directory in the cmd directory D:\Apache24\ Bin, and then execute the Apache boot command httpd-k start, if the startup is unsuccessful will report a related error, you can troubleshoot the problem based on the error.  

Win7 How to deploy Apache servers (including SSL settings)

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.