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)