Home > etc > ウェブサーバーの設定

ウェブサーバーの設定

  • 2007-11-10 (土) 16:57
  • etc

# vi /etc/httpd/conf/httpd.conf
ServerTokens Prod ← 変更
ServerAdmin webadmin@local.domain.tld ← 変更
ServerName domain.tld:80 ← 変更
UseCanonicalName On ← 変更 ( 末尾 “/” の自動補完 )
<Directory “/var/www/html”>
Options Includes ExecCGI FollowSymLinks ← CGI,SSI許可に変更
AllowOverride All ← .htaccessの許可に変更
</Directory>
ServerSignature Off ← 変更
LanguagePriority ja… ← ja を先頭にする。
#AddDefaultCharset UTF-8 ← コメントアウト
AddHandler cgi-script .cgi .pl ← 変更

# ln -s /usr/bin/perl /usr/local/bin/perl ← Perlのシンボリックリンク
# whereis perl ← 確認
# chown xxxxxx. /var/www/ ← 所有者を変更
# ll /var/ ← 所有者を確認
# /etc/rc.d/init.d/httpd start← httpd スタート
# /sbin/chkconfig httpd on ← 自動起動オン
# /sbin/chkconfig –list httpd ← 確認
# rm -f /etc/httpd/conf.d/welcome.conf ← welcomeページを削除
# rm -f /var/www/error/noindex.html ← noindexページを削除
# exit
$ vi /var/www/html/index.html ← テストページを作成してブラウザで確認
$ rm -f /var/www/html/index.html ← テストページを削除

Comments:0

Comment Form
Remember personal info

Trackback+Pingback:0

TrackBack URL for this entry
http://www3.us/2007/11/10/%e3%82%a6%e3%82%a7%e3%83%96%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%81%ae%e8%a8%ad%e5%ae%9a/trackback/
Listed below are links to weblogs that reference
ウェブサーバーの設定 from nnpooh の :: ひとり言 ::

Home > etc > ウェブサーバーの設定

Links
Search
Feeds

Page Top