[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 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/rc.d/init.d/httpd restart [root@localhost ~]#chkconfig httpd on
二月 22
近期迴響