mirror of
https://github.com/acepanel/panel.git
synced 2026-02-05 02:07:18 +08:00
39 lines
1020 B
Go
39 lines
1020 B
Go
package apache
|
|
|
|
// DisableConfName 禁用配置文件名
|
|
const DisableConfName = "000-disable.conf"
|
|
|
|
// DisableConfContent 禁用配置内容
|
|
const DisableConfContent = `# 网站已停止
|
|
RewriteEngine on
|
|
RewriteRule ^.*$ - [R=503,L]
|
|
`
|
|
|
|
// 配置文件序号范围
|
|
const (
|
|
RedirectStartNum = 100 // 重定向配置起始序号 (100-199)
|
|
RedirectEndNum = 199
|
|
ProxyStartNum = 200 // 代理配置起始序号 (200-299)
|
|
ProxyEndNum = 299
|
|
)
|
|
|
|
// 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/vhost/*.conf
|
|
|
|
<Directory /opt/ace/sites/default/public>
|
|
Options -Indexes +FollowSymLinks
|
|
AllowOverride All
|
|
Require all granted
|
|
</Directory>
|
|
</VirtualHost>
|
|
`
|