httpd.template #28

Merged
liuyu merged 1 commits from 20241021_httpd into master 8 months ago
  1. 17
      httpd.template

17
httpd.template

@ -355,7 +355,7 @@ IncludeOptional conf.d/*.conf
# 11785 端口号填写为slb或容器(slb端口号=容器端口号)的端口号 # 11785 端口号填写为slb或容器(slb端口号=容器端口号)的端口号
<VirtualHost *:11785> <VirtualHost *:11785>
ServerName kuaileorder.gavinlau.cn ServerName www.kuailebangshou.cn
DocumentRoot /var/www/html DocumentRoot /var/www/html
ErrorLog /var/log/httpd/kuaileorder-error_log ErrorLog /var/log/httpd/kuaileorder-error_log
@ -367,4 +367,19 @@ RewriteRule ^/css/(.*)$ /view/css/$1 [L]
RewriteRule ^/js/(.*)$ /view/js/$1 [L] RewriteRule ^/js/(.*)$ /view/js/$1 [L]
RewriteRule ^/font/(.*)$ /view/font/$1 [L] RewriteRule ^/font/(.*)$ /view/font/$1 [L]
RewriteRule ^(.*)$ /index.php?argv=$1 [L] RewriteRule ^(.*)$ /index.php?argv=$1 [L]
#DENY FILES
<Files ~ (\.user.ini|\.htaccess|\.git|\.svn|\.project|LICENSE|README.md)$>
Order allow,deny
Deny from all
</Files>
<Directory "/var/www/html">
SetOutputFilter DEFLATE
Options FollowSymLinks
AllowOverride All
Require all granted
DirectoryIndex index.php index.html index.htm default.php default.html default.htm
</Directory>
</VirtualHost> </VirtualHost>

Loading…
Cancel
Save