### Apache Version 1.3.41 httpd.conf ServerType standalone ServerRoot "C:/Apache" PidFile logs/httpd.pid ScoreBoardFile logs/apache_runtime_status #ResourceConfig conf/srm.conf #AccessConfig conf/access.conf Timeout 300 KeepAlive On MaxKeepAliveRequests 100 KeepAliveTimeout 15 MaxRequestsPerChild 0 ThreadsPerChild 50 Listen *:80 BindAddress * LoadModule vhost_alias_module modules/mod_vhost_alias.so LoadModule mime_magic_module modules/mod_mime_magic.so LoadModule status_module modules/mod_status.so LoadModule info_module modules/mod_info.so LoadModule speling_module modules/mod_speling.so LoadModule rewrite_module modules/mod_rewrite.so LoadModule anon_auth_module modules/mod_auth_anon.so LoadModule dbm_auth_module modules/mod_auth_dbm.so LoadModule digest_auth_module modules/mod_auth_digest.so LoadModule digest_module modules/mod_digest.so LoadModule proxy_module modules/mod_proxy.so LoadModule cern_meta_module modules/mod_cern_meta.so LoadModule expires_module modules/mod_expires.so LoadModule headers_module modules/mod_headers.so LoadModule usertrack_module modules/mod_usertrack.so LoadModule unique_id_module modules/mod_unique_id.so LoadModule php5_module "C:/PHP/php5apache.dll" # [WHENEVER YOU CHANGE THE LOADMODULE SECTION ABOVE, UPDATE THIS TOO!] ClearModuleList AddModule mod_vhost_alias.c AddModule mod_env.c AddModule mod_log_config.c AddModule mod_mime_magic.c AddModule mod_mime.c AddModule mod_negotiation.c AddModule mod_status.c AddModule mod_info.c AddModule mod_include.c #AddModule mod_autoindex.c AddModule mod_dir.c AddModule mod_isapi.c AddModule mod_cgi.c AddModule mod_asis.c AddModule mod_imap.c AddModule mod_actions.c AddModule mod_speling.c AddModule mod_userdir.c AddModule mod_alias.c AddModule mod_rewrite.c AddModule mod_access.c AddModule mod_auth.c AddModule mod_auth_anon.c AddModule mod_auth_dbm.c AddModule mod_auth_digest.c AddModule mod_digest.c AddModule mod_proxy.c AddModule mod_cern_meta.c AddModule mod_expires.c AddModule mod_headers.c AddModule mod_usertrack.c AddModule mod_unique_id.c AddModule mod_so.c AddModule mod_setenvif.c AddModule mod_php5.c #ExtendedStatus On Port 80 ServerAdmin anko@nogiriya.com ServerName nogiriya.com DocumentRoot "C:/www" Options +IncludesNOEXEC AllowOverride None Options +IncludesNOEXEC #Options -Indexes FollowSymLinks MultiViews ExecCGI Includes AllowOverride None Order allow,deny Allow from all UserDir "C:/www/" Options +IncludesNOEXEC # Options +ExecCGI Includes AddHandler cgi-script .cgi .pl # AllowOverride FileInfo AuthConfig Limit Options All #Options MultiViews SymLinksIfOwnerMatch ExecCGI Includes # # Order allow,deny # Allow from all # # # Order deny,allow # Deny from all # # Document Rootにindex.cgiを置いてPCアクセスと携帯アクセスを振り分けて別ページ表示するため index.htmlが先頭 DirectoryIndex index.html index.htm index.cgi index.php AccessFileName .htaccess Order allow,deny Deny from all Satisfy All CacheNegotiatedDocs UseCanonicalName On TypesConfig conf/mime.types DefaultType text/html #DefaultType text/plain MIMEMagicFile conf/magic # On でホスト名表示、Off でIP表示 HostnameLookups On # %h=リモートPCの名称またはIPaddress. %a=リモートPCのIPaddress. %l=リモートログ名(identdをクライアントがサポートしているとき) # %u=クライアント側のユーザー名. %t=リクエストされた時間. %r=リクエストの最初の行. %b=そのリクエストで行われたデータの転送量(bytes) LogLevel warn LogFormat "%h %l %a %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined LogFormat "%h %l %a %u %t \"%r\" %>s %b" common LogFormat "%{Referer}i -> %U" referer LogFormat "%{User-agent}i" agent CustomLog logs/access.log common CustomLog logs/referer.log referer # 検索エンジンからのエラーが頻繁に出るので削除 H19/05/21/ #ErrorLog logs/error.log ServerSignature Off # perl.exe の場所を設定、ここに記述すればWindows環境変数にPath無しでOK #!c:/usr/local/bin/perl #ScriptInterpreterSource registry Alias /icons/ "C:/Apache/icons/" Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all Alias /manual/ "C:/Apache/htdocs/manual/" Options Indexes FollowSymlinks MultiViews AllowOverride None Order allow,deny Allow from all ### 同窓会画像ファイル Basic認証 User=dousou Password=3***19 Alias /dousou/ "C:/www/dousou/" Options +IncludesNOEXEC AddHandler cgi-script .cgi .pl AllowOverride AuthConfig Limit Order allow,deny Allow from all ### 礼子さんHP Basic認証 User=reiko passward=do**t*n Alias /reiko/ "C:/www/reiko/" Options +IncludesNOEXEC AddHandler cgi-script .cgi .pl AllowOverride AuthConfig Limit Order allow,deny Allow from all ### /zoo/ディレクトリ Basic認証 User=reiko passward=do**t*n Alias /zoo/ "C:/www/zoo/" Options +IncludesNOEXEC AddHandler cgi-script .cgi .pl AllowOverride AuthConfig Limit Order allow,deny Allow from all ### 野切り屋稼業ビデオライブラリー Alias /video/ "D:/video/" Options All AllowOverride None Order allow,deny Allow from all ### 画像ファイルをcgi-bin下に入れると表示されないためAliasとする # ScriptAlias /cgi-bin/ "C:/www/cgi-bin/" # # AllowOverride None # # Options +IncludesNOEXEC # Options All # Order allow,deny # Allow from all # ### 画像ファイルをcgi-bin下に入れると表示されないためAliasとする Alias /cgi-bin/ "C:/www/cgi-bin/" AllowOverride None # Options +IncludesNOEXEC Options All Order allow,deny Allow from all # End of aliases. ### アドレスを/でアクセスされてもファイルやディレクトリを表示させない (重要) # IndexOptions FancyIndexing # ReadmeName README.html # HeaderName HEADER.html # IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t # End of indexing directives. AddType application/x-tar .tgz AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps AddEncoding x-compress .Z AddEncoding x-gzip .gz .tgz #AddType application/x-compress .Z #AddType application/x-gzip .gz .tgz AddLanguage ja .ja AddCharset ISO-2022-JP .jis AddLanguage kr .kr AddCharset ISO-2022-KR .iso-kr AddCharset UTF-8 .utf8 AddLanguage en .en # 最初にjaを記述 LanguagePriority ja kr en AddHandler cgi-script .cgi .pl # LoadModule php4_module C:/PHP/sapi/php4apache.dll # LoadModule php5_module "C:/PHP/php5apache.dll" # PHPIniDir "C:/PHP" # AddType application/x-httpd-php .php # AddType application/x-httpd-php-source .phps # PHP 4 の場合 # Action application/x-httpd-php "/PHP/php.exe" # PHP 5 の場合 Action application/x-httpd-php "/PHP/php-cgi.exe" # php.ini の場所を設定 SetEnv PHPRC C:/PHP AddType text/html .htm AddHandler server-parsed .htm AddType text/html .html AddHandler server-parsed .html AddType text/html .shtm AddHandler server-parsed .shtm AddType text/html .shtml AddHandler server-parsed .shtml #AddType text/html .html #AddOutputFilter INCLUDES .html AddHandler send-as-is asis AddHandler imap-file map AddHandler type-map var AddModule mod_php5.c # End of document types. #MetaDir .web #MetaSuffix .meta #ErrorDocument 500 "The server made a boo boo. #ErrorDocument 404 /missing.html #ErrorDocument 404 /cgi-bin/missing_handler.pl #ErrorDocument 402 http://www.example.com/subscription_info.html BrowserMatch "Mozilla/2" nokeepalive BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0 BrowserMatch "RealPlayer 4\.0" force-response-1.0 BrowserMatch "Java/1\.0" force-response-1.0 BrowserMatch "JDK/1\.0" force-response-1.0 # End of browser customization directives # # SetHandler server-status # Order deny,allow # Deny from all # Allow from ankosan.jp # # # SetHandler server-info # Order deny,allow # Deny from all # Allow from ankosan.jp # # # Deny from all # ErrorDocument 403 http://phf.apache.org/phf_abuse_log.cgi # NameVirtualHost *:80 ServerAdmin anko@nogiriya.com DocumentRoot C:/www ServerName nogiriya.com ServerAlias *.nogiriya.com Options +IncludesNOEXEC AllowOverride None # Order allow,deny # Allow from all # アクセス制限 下記アドレスからのアクセスを拒否する (例 123.223.111.222 111.222 .anpontan.co.jp) # 下記アドレスは無効なディレクトリへの執拗なアクセスがあるため拒否します(御免なさいねww) order allow,deny allow from all deny from 68.169 96.47 173.44 64.188 UserDir "C:/www/" Options +IncludesNOEXEC AllowOverride None # Order allow,deny # Allow from all # アクセス制限 下記アドレスからのアクセスを拒否する (例 123.223.111.222 111.222 .anpontan.co.jp) # 下記アドレスは無効なディレクトリへの執拗なアクセスがあるため拒否します(御免なさいねww) order allow,deny allow from all deny from 68.169 96.47 173.44 64.188 CustomLog "| /Apache/bin/rotatelogs.exe logs/access_%Y%m%d.log 86400" combined ErrorLog "| /Apache/bin/rotatelogs.exe logs/error_%Y%m%d.log 86400" #################### ### http://ankosan.jpは Value-Domainの レンタルサーバーで使用中 # # ServerAdmin nogiriya@ankosan.jp # DocumentRoot "C:/www" # ServerName ankosan.jp # ServerAlias *.ankosan.jp # # # Options +IncludesNOEXEC # AllowOverride None # Order allow,deny # Allow from all # # # UserDir "C:/www/" # # Options +IncludesNOEXEC # AllowOverride None # Order allow,deny # Allow from all # # # #################### ServerAdmin nogiriya@ankosan.com DocumentRoot C:/www ServerName ankosan.com ServerAlias *.ankosan.com Options +IncludesNOEXEC AllowOverride None # Order allow,deny # Allow from all # アクセス制限 下記アドレスからのアクセスを拒否する (例 123.223.111.222 111.222 .anpontan.co.jp) # 下記アドレスは無効なディレクトリへの執拗なアクセスがあるため拒否します(御免なさいねww) order allow,deny allow from all deny from 68.169 96.47 173.44 64.188 UserDir "C:/www/" Options +IncludesNOEXEC AllowOverride None # Order allow,deny # Allow from all # アクセス制限 下記アドレスからのアクセスを拒否する (例 123.223.111.222 111.222 .anpontan.co.jp) # 下記アドレスは無効なディレクトリへの執拗なアクセスがあるため拒否します(御免なさいねww) order allow,deny allow from all deny from 68.169 96.47 173.44 64.188 CustomLog "| /Apache/bin/rotatelogs.exe logs/access_%Y%m%d.log 86400" combined ErrorLog "| /Apache/bin/rotatelogs.exe logs/error_%Y%m%d.log 86400"