install apache httpd server 2.2 on windows 10


Guide

install and config

download httpd-2.2.34-win64.zip
extract to c:/Apache2
edit conf/httpd.conf

ServerRoot "c:/Apache2"
Listen 80
ServerName 127.0.0.1
DocumentRoot "c:/Apache2/htdocs"

run cmd.exe as administrator and install apache2.2 service

cd c:/Apache2/bin
httpd.exe -k install -n apache2.2

tips: use sc delete apache2.2 to delete service first if error occurs and then install again.

install service

run bin/ApacheMonitor.exe to start apache2.2 service

apache2.2 service running

access from local

test localhost
works

access from remote

edit conf/httpd.conf

#Directory "c:/Apache2/htdocs"
    AllowOverride None
    Order allow,deny
    Allow from all
#/Directory

open windows defender and allow Apache Http Server packets in/out
allow apache

  • server host ip: 192.168.6.149
  • access host ip: 192.168.6.100
[email protected]>$  wget http://192.168.6.149/1.txt

Reference

History

  • 20181114: created.

Author: kezunlin
Reprint policy: All articles in this blog are used except for special statements CC BY 4.0 reprint polocy. If reproduced, please indicate source kezunlin !
评论
  TOC