[root@localhost ~]# cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.bak
[root@localhost ~]# vim /etc/httpd/conf/httpd.conf
KeepAlive Off–>KeepAlive On(是否允許持續性的連線)
MaxKeepAliveRequests 100–>MaxKeepAliveRequests 500(KeepAlive連線能夠傳輸的最大傳輸數量,和增進效能有關)
ServerAdmin(管理者信箱)
ServerName(主機名稱)
<Directory “/var/www/html">
Options Indexes FollowSymLinks –>Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
UserDir disable–>#UserDir disable
#UserDir public_html–>UserDir www(個人網站)
DirectoryIndex index.html index.html.var –> DirectoryIndex index.html index.html.var index.php index.htm(預設的首頁)
LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW –>LanguagePriority zh-TW en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN
AddDefaultCharset UTF-8–>#AddDefaultCharset UTF-8(不要宣告預設語系,由網頁表頭宣告)
[root@localhost ~]# /etc/init.d/httpd restart
[root@localhost ~]# chkconfig httpd on
九月 01
近期迴響