memorandum
FrontPage
管理
ヘルプ
VineLinux4.x/Apache2.2/インストールおよび設定
をテンプレートにして作成
開始行:
*インストール [#z474793a]
# apt-get install apache2
*設定ファイルの編集 [#jfbe642f]
# vi /etc/apache2/conf/httpd.conf
>
サーバー名の設定
ServerName kayanomori.net:80
html等の公開するファイルを置く場所
#DocumentRoot "/var/www/html"
DocumentRoot "/home/httpd/html"
上にあわせて修正
#<Directory "/var/www/html">
<Directory "/home/httpd/html">
Directoryに適当するオプション
# Options Indexes FollowSymLinks
Options MultiViews SymLinksIfOwnerMatch Includes
http://〜/でアクセスしてきたときに自動的に表示するファイル
#DirectoryIndex index.html index.html.var
DirectoryIndex index.html index.shtml index.php
IPアドレスの逆引きを行う
#HostnameLookups Off
HostnameLookups On
条件によりログファイルを分離させる
SetEnvIf Remote_Addr 192.168.0. homelog nolog
SetEnvIf Remote_Addr 127.0.0.1 homelog nolog
SetEnvIf Remote_Host "(asianetcom.net)|(become.com)|(msn...
SetEnvIf Remote_Addr 60.28.17. robotlog nolog
SetEnvIf Remote_Addr 61.247.197. robotlog nolog
SetEnvIf Remote_Addr 61.247.196. robotlog nolog
SetEnvIf Remote_Addr 219.166.144.19 watchlog nolog
home_log=自分の家からのアクセス用
robot_log=サーチエンジンからのアクセス用
watch_log=監視用
CustomLog logs/home_log common env=homelog
CustomLog logs/robot_log common env=robotlog
CustomLog logs/watch_log common env=watchlog
上以外からのアクセスはaccess_logに記録
#CustomLog logs/access_log combined
CustomLog logs/access_log combined env=!nolog
CGIスクリプト格納用のディレクトリ設定
#ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
ScriptAlias /cgi-bin/ "/home/httpd/cgi-bin/"
#<Directory "/home/httpd/cgi-bin">
拡張子.cgiはcgiスクリプトであると認識させる
AddHandler cgi-script .cgi
*起動 [#gdd4e5d5]
# /etc/init.d/apache2 start
httpdを起動中: [ OK ]
*自動起動の設定 [#i2818b7e]
# chkconfig apache2 on
# chkconfig --list apache2
apache2 0:off 1:off 2:off 3:on 4:off ...
* コメント [#n29da51b]
#comment
終了行:
*インストール [#z474793a]
# apt-get install apache2
*設定ファイルの編集 [#jfbe642f]
# vi /etc/apache2/conf/httpd.conf
>
サーバー名の設定
ServerName kayanomori.net:80
html等の公開するファイルを置く場所
#DocumentRoot "/var/www/html"
DocumentRoot "/home/httpd/html"
上にあわせて修正
#<Directory "/var/www/html">
<Directory "/home/httpd/html">
Directoryに適当するオプション
# Options Indexes FollowSymLinks
Options MultiViews SymLinksIfOwnerMatch Includes
http://〜/でアクセスしてきたときに自動的に表示するファイル
#DirectoryIndex index.html index.html.var
DirectoryIndex index.html index.shtml index.php
IPアドレスの逆引きを行う
#HostnameLookups Off
HostnameLookups On
条件によりログファイルを分離させる
SetEnvIf Remote_Addr 192.168.0. homelog nolog
SetEnvIf Remote_Addr 127.0.0.1 homelog nolog
SetEnvIf Remote_Host "(asianetcom.net)|(become.com)|(msn...
SetEnvIf Remote_Addr 60.28.17. robotlog nolog
SetEnvIf Remote_Addr 61.247.197. robotlog nolog
SetEnvIf Remote_Addr 61.247.196. robotlog nolog
SetEnvIf Remote_Addr 219.166.144.19 watchlog nolog
home_log=自分の家からのアクセス用
robot_log=サーチエンジンからのアクセス用
watch_log=監視用
CustomLog logs/home_log common env=homelog
CustomLog logs/robot_log common env=robotlog
CustomLog logs/watch_log common env=watchlog
上以外からのアクセスはaccess_logに記録
#CustomLog logs/access_log combined
CustomLog logs/access_log combined env=!nolog
CGIスクリプト格納用のディレクトリ設定
#ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
ScriptAlias /cgi-bin/ "/home/httpd/cgi-bin/"
#<Directory "/home/httpd/cgi-bin">
拡張子.cgiはcgiスクリプトであると認識させる
AddHandler cgi-script .cgi
*起動 [#gdd4e5d5]
# /etc/init.d/apache2 start
httpdを起動中: [ OK ]
*自動起動の設定 [#i2818b7e]
# chkconfig apache2 on
# chkconfig --list apache2
apache2 0:off 1:off 2:off 3:on 4:off ...
* コメント [#n29da51b]
#comment
ページ名:
検索
AND検索
OR検索
編集操作
一覧
単語検索
最終更新
バックアップ
ヘルプ
トップページ
http://kayanomori.net/
↑
アクセス数
本日:0人
昨日:0人
総数:0人
現在:5人
最新の20件
2022-07-16
投票箱
2022-01-30
FrontPage
2022-01-29
めも
2018-02-03
SandBox
PukiWiki
InterWikiName
FormattingRules
PukiWiki/1.4/Manual/Plugin/O-R
PukiWiki/1.4/Manual/Plugin/S-U
InterWiki
日本語
複数画像アップ掲示板 ECOUP(エコアップ) v1.31
日記/2006-12-12
日記
日記/2005-10-04
特定のオートコンプリート履歴だけを削除する
日記/2005-10-06
小ネタ集/WordPress
日記/2005-10-05
整形ルール
edit