# This should be changed to whatever you set DocumentRoot to. # <Directory "/var/www/html"> # # This may also be "None", "All", or any combination of "Indexes", # "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews". # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you. # Options Indexes FollowSymLinks # # This controls which options the .htaccess files in directories can # override. Can also be "All", or any combination of "Options", "FileInfo", # "AuthConfig", and "Limit" # AllowOverride None # # Controls who can get stuff from this server. # Order allow,deny Allow from all </Directory> |
Optoins:
ExecCGI:讓你的目錄可以執行如CGI。
FollowSymLinks:讓你的Link能連接到其他目錄。
Indexes:如果沒有預設首頁,那會把整個目錄內容印出來(最好不要有)。
MultiViews:多國語言支援功能。
All:全部都有,不支援MultiViews。
AllowOverride :
指的是 .htaccess 這個檔案。
Order allow,deny:啟用 allow and deny 設定。
例如,我只要讓 edu.tw 的網域存取,我可以設定:
deny : all
allow : form edu.tw
沒有留言:
張貼留言