≪ 途中省略 ≫

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <# directive>
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
#
#Listen 12.34.56.78:80
Listen 80
※普通は書き換えることは無いですがポート番号を変更した場合は書き換えます
Listen 8080

≪ 途中省略 ≫

#
# ServerAdmin: Your address, where problems with the server should be
# e-mailed. This address appears on some server-generated pages, such
# as error documents. e.g. admin@your-domain.com
#
ServerAdmin
※ホームページ管理者のメールアドレスを記入します
ServerAdmin abc@papa-net.com
#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
#
ServerName :80
※ドメイン名+ポート番号を記入します
ServerName papa-net.com:80

#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot C:/Apache/Apache2.2/htdocs
※ホームページ公開用フォルダに書き換えします。書き換えなくてもOKです
DocumentRoot E:/www
注:Eドライブの www と言うフォルダを公開用としていますが任意のフォルダです

#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# features.
#
<Directory />
Options FollowSymLinks
※CGIを使えるにします CGIを使わない場合は書き換えないで下さい
Options FollowSymLinks ExecCGI
AllowOverride None
※.htaccess によるユーザー認証機能を使えるにします ユーザー認証機能を使わない場合は書き換えないで下さい
AllowOverride AuthConfig Limit
Order deny,allow
Deny from all
Satisfy all
</Directory>

#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#

#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "C:/Apache/Apache2.2/htdocs>
※ホームページ公開用フォルダに書き換えします 書き換えなくてもOKです
<Directory E:/www>
注:Eドライブの www と言うフォルダを公開用としていますが任意のフォルダです
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
※index ファイルが無い場合フォルダ内が閲覧できていまうので閲覧できないようにする(セキュリティー対策)
Options FollowSymLinks

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None

#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all

</Directory>

#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
DirectoryIndex index.html
※index ファイルの指定に index.htm index.cgi index.php を追加する
DirectoryIndex index.html index.htm index.cgi index.php
/IfModule

≪ 途中省略 ≫

#
# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the target directory are treated as applications and
# run by the server when requested rather than as documents sent to the
# client. The same rules about trailing "/" apply to ScriptAlias
# directives as to Alias.
#
ScriptAlias /cgi-bin/ C:/Apache/Apache2.2/cgi-bin/
※CGIファイルを格納するフォルダの指定をする
ScriptAlias /cgi-bin/ E:/www/cgi-bin/
</IfModule>

#
#C:/Apache/Apache2.2/cgi-bin should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory C:/Apache/Apache2.2/cgi-bin>
※CGIファイルを格納するフォルダの指定をする
<Directory E:/www/cgi-bin
AllowOverride None
Options None
CGIファイルを実行内容の指定をする。
Options Includes ExecCGI FollowSymLinks※CGI・SSI・シンボリックの許可
Order allow,deny
Allow from all
</Directory>

≪ 途中省略 ≫

#
# AddHandler allows you to map certain file extensions to "handlers":
# actions unrelated to filetype. These can be either built into the server
# or added with the Action directive (see below)
#
# To use CGI scripts outside of ScriptAliased directories:
# (You will also need to add & ExecCGI to the Options directive.)
#
#AddHandler cgi-script .cgi
※CGIファイルを実行できるようにする
AddHandler cgi-script .cgi .pl※CGIスクリプトに .pl を追加

≪ 以下省略 ≫