#服務器根目錄
ServerRoot "/etc/httpd" #端口
#Listen 12.34.56.78:80 Listen 80 #域名+端口來標識服務器,沒有域名用ip也可以
#ServerName www.example.com:80 #不許訪問根目錄
<Directory /> AllowOverride none Require all denied </Directory> # 文檔目錄
DocumentRoot "/var/www/html" # 對 /var/www目錄訪問限制
<Directory "/var/www"> AllowOverride None # Allow open access: Require all granted </Directory> # 對/var/www/html目錄訪問限制 <Directory "/var/www/html"> Options Indexes FollowSymLinks AllowOverride None Require all granted </Directory> # 默認編碼
AddDefaultCharset UTF-8 #EnableMMAP off EnableSendfile on
# include進來其它配置文件
IncludeOptional conf.d/*.conf
apache配置文件說明
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.