modify: 优化 Apache 配置文件

This commit is contained in:
Akatsukiro 2024-01-16 15:04:50 +08:00
parent bf495185ff
commit 6baf03371c
Signed by: Akatsukiro
GPG Key ID: 93F1D32999999999

View File

@ -165,12 +165,17 @@ setup_apache() {
<VirtualHost *:80>
ServerName ${domain}
DocumentRoot /var/www/lsky/public
DirectoryIndex index.php
ErrorLog \${APACHE_LOG_DIR}/lsky_error.log
CustomLog \${APACHE_LOG_DIR}/lsky_access.log combined
<Directory /var/www/lsky/public>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog \${APACHE_LOG_DIR}/lsky_error.log
CustomLog \${APACHE_LOG_DIR}/lsky_access.log combined
</VirtualHost>
EOF
a2ensite lsky.conf