2008年9月19日 星期五

Apache

安裝apache2
Debian的設定檔 apache2.conf
#vi /etc/apache2/apache2.conf

StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxClients 150
MaxRequestsPerChild 0

.
.
.
.
#
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
當目錄底下有.ht檔時,網頁會先靜止再開啟
Order allow,deny
Deny from all


TypesConfig /etc/mime.types 類別的檔案在哪裡

HostnameLookups Off 要不要記錄主機名稱,Off就是不記錄ip,不解析ip


別名的設定
Alias /icons/ "/usr/share/apache2/icons/"


Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all


設定監聽的port
#vi /etc/apache2/ports.conf

#vi /etc/apache2/sites-enabled/000-default 設定網站根目錄
DocumentRoot /var/www/
ServerAdmin 管理者的mail
ServerName 網站的網址

#vi /etc/apache2/mods-enabled 各模組設定


沒有留言: