2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 06:47:20 +08:00
Files
panel/pkg/webserver/apache/data.go
2025-12-01 14:19:15 +08:00

31 lines
808 B
Go

package apache
// DisableConfName 禁用配置文件名
const DisableConfName = "00-disable.conf"
// DisableConfContent 禁用配置内容
const DisableConfContent = `# 网站已停止
RewriteEngine on
RewriteRule ^.*$ - [R=503,L]
`
// DefaultVhostConf 默认配置模板
const DefaultVhostConf = `<VirtualHost *:80>
ServerName localhost
DocumentRoot /opt/ace/sites/default/public
DirectoryIndex index.php index.html
ErrorLog /opt/ace/sites/default/log/error.log
CustomLog /opt/ace/sites/default/log/access.log combined
# custom configs
IncludeOptional /opt/ace/sites/default/config/server.d/*.conf
<Directory /opt/ace/sites/default/public>
Options -Indexes +FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
`