●バックアップ取得 [root@web2 ~]# cp -p /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.org ●httpd.conf編集 以下の内容に変更 [root@web2 /www]# diff -c /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.org *** /etc/httpd/conf/httpd.conf Thu Nov 24 15:37:27 2011 --- /etc/httpd/conf/httpd.conf.org Fri Oct 21 06:05:19 2011 *************** *** 71,77 **** # KeepAlive: Whether or not to allow persistent connections (more than # one request per connection). Set to "Off" to deactivate. # ! KeepAlive On # # MaxKeepAliveRequests: The maximum number of requests to allow --- 71,77 ---- # KeepAlive: Whether or not to allow persistent connections (more than # one request per connection). Set to "Off" to deactivate. # ! KeepAlive Off # # MaxKeepAliveRequests: The maximum number of requests to allow *************** *** 131,138 **** # prevent Apache from glomming onto all bound IP addresses (0.0.0.0) # #Listen 12.34.56.78:80 ! #Listen 80 ! Listen 182.48.31.136:80 # # Dynamic Shared Object (DSO) Support --- 131,137 ---- # prevent Apache from glomming onto all bound IP addresses (0.0.0.0) # #Listen 12.34.56.78:80 ! Listen 80 # # Dynamic Shared Object (DSO) Support *************** *** 970,976 **** # # Use name-based virtual hosting. # ! NameVirtualHost *:80 # # NOTE: NameVirtualHost cannot be used without a port specifier # (e.g. :80) if mod_ssl is being used, due to the nature of the --- 969,975 ---- # # Use name-based virtual hosting. # ! #NameVirtualHost *:80 # # NOTE: NameVirtualHost cannot be used without a port specifier # (e.g. :80) if mod_ssl is being used, due to the nature of the *************** *** 990,1005 **** # ErrorLog logs/dummy-host.example.com-error_log # CustomLog logs/dummy-host.example.com-access_log common # - - ServerName 182.48.31.136 - ServerAlias web2.i-generation.jp - DocumentRoot /www/aff/user/www - ErrorLog logs/error_log_aff - CustomLog logs/access_log_aff combined - RewriteEngine on - # RewriteRule ^/([^/]+)/?$ /cl/click.php?b_id=$1 - - Options FollowSymLinks MultiViews - AllowOverride All - - --- 989,991 ---- ●Apache再起動 [root@web2 ~]# /etc/init.d/httpd restart Stopping httpd: [ OK ] Starting httpd: [ OK ] ●Apache自動起動設定 [root@web2 ~]# chkconfig --list httpd httpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off [root@web2 ~]# chkconfig httpd on [root@web2 ~]# chkconfig --list httpd httpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off