【Apache】Windows Apache WEB Server 設定(Apache 2.4.20)
ServerRoot "c:/Apache24"
DocumentRoot "c:/Apache24/htdocs"
<Directory "c:/Apache24/htdocs">
ScriptAlias /cgi-bin/ "c:/Apache24/cgi-bin/" <Directory "c:/Apache24/cgi-bin"> Listen 80 #ServerName www.example.com:80 localhost:80 Include conf/extra/httpd-mpm.conf
Include conf/extra/httpd-vhosts.conf
<IfModule mpm_winnt_module> ThreadsPerChild 150 MaxConnectionsPerChild 0 AcceptFilter http none AcceptFilter https none EnableSendfile off EnableMMAP off </IfModule>
<VirtualHost *_80> # PCの文書位置 DocumentRoot "c:/web/com" # ブラウザからのホスト名 ServerName localhost ErrorLog "c:/web/files/logs/com/error.log" CustomLog "c:/web/files/logs/com/access.log" common <Directory "c:/web/com"> #Require all granted # localhostのみ接続を許可(他のパソコンからの接続を拒否する場合) Require all denied Require ip 127.0.0.1 </Directory> </VirtualHost>