mirror of
https://github.com/akatsukiro/lsky-pro-install-script.git
synced 2025-06-08 14:13:04 +08:00
modify: 优化 Apache 配置文件
This commit is contained in:
parent
bf495185ff
commit
6baf03371c
@ -165,12 +165,17 @@ setup_apache() {
|
|||||||
<VirtualHost *:80>
|
<VirtualHost *:80>
|
||||||
ServerName ${domain}
|
ServerName ${domain}
|
||||||
DocumentRoot /var/www/lsky/public
|
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>
|
<Directory /var/www/lsky/public>
|
||||||
|
Options FollowSymLinks
|
||||||
AllowOverride All
|
AllowOverride All
|
||||||
Require all granted
|
Require all granted
|
||||||
</Directory>
|
</Directory>
|
||||||
ErrorLog \${APACHE_LOG_DIR}/lsky_error.log
|
|
||||||
CustomLog \${APACHE_LOG_DIR}/lsky_access.log combined
|
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
EOF
|
EOF
|
||||||
a2ensite lsky.conf
|
a2ensite lsky.conf
|
||||||
|
Loading…
x
Reference in New Issue
Block a user