Files

21 lines
634 B
Plaintext

<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/public
<Directory /var/www/html/public>
Options -Indexes +FollowSymLinks
AllowOverride All
Require all granted
DirectoryIndex index.php
</Directory>
# 禁止直接访问业务数据与源码目录
<DirectoryMatch "^/var/www/html/(app|data|uploads|vendor)">
Require all denied
</DirectoryMatch>
ErrorLog ${APACHE_LOG_DIR}/error.log
SetEnvIf Request_URI "^/portal-sso" portal_sso_request
CustomLog ${APACHE_LOG_DIR}/access.log combined env=!portal_sso_request
</VirtualHost>