<VirtualHost *:80>
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory />
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
<VirtualHost *:443>
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLEngine on
SSLCertificateFile "/root/ssl/joxqyd.feieryun.cn_bundle.crt"
SSLCertificateKeyFile "/root/ssl/joxqyd.feieryun.cn.key"
Protocols h2
Alias "/users" "/users"
<Directory />
AllowOverride All
Require all granted
</Directory>
<Directory "/users">
AllowOverride None
php_admin_flag engine off
DirectoryIndex index.html
Options -Indexes
IndexOptions FancyIndexing
IndexOptions IgnoreCase
IndexIgnore *.htm *.html
<Files ~ ".+">
Deny from all
</Files>
<Files ~ "index\.html$">
Allow from all
</Files>
<Files ~ ".(html|htm|zip|rar|7z|mp3|jpg|png)$">
Allow from all
</Files>
</Directory>
<Directory "/users/ljf">
Options +Indexes
</Directory>
<Directory "/users/xixi/down">
Options +Indexes
</Directory>
</VirtualHost>
标签:LOG,静态,Indexes,APACHE,html,Apache,权限,DIR,log
From: https://www.cnblogs.com/xiangxisheng/p/17932274.html