ubuntu - 无法删除虚拟主机 openlitespeed

标签 ubuntu caching openlitespeed

我已经在 ubuntu 20 上安装了新的 openlitespeed。
我有新的“示例”配置。
在仪表板中,我看到带有监听器和虚拟主机的表格。
靠近虚拟主机有暂停按钮。当我单击“暂停”时,没有任何 react 。当我删除虚拟主机时,它仍然在仪表板上可见并且仍在运行。
当我创建新的虚拟主机时,新的虚拟主机被禁用,因为“示例”虚拟主机在域中有“*”。
你能帮我吗,如何停止或删除 Open Lite Speed 上的虚拟主机?
更新:2021 年 10 月 31 日
enter image description here
enter image description here
1 天后,我打开仪表板,我看到,该示例已暂停,但第二台主机具有“已停止”状态,在域列中没有域(空白处),没有“暂停/启动”按钮。
另外 SSL 有带有断链的图标。
在 VH 配置中,我放置了正确的证书路径,配置文件如下所示:

 virtualhost Example {
  vhRoot                  Example/
  configFile              conf/vhosts/Example/vhconf.conf
  allowSymbolLink         1
  enableScript            1
  restrained              1
  setUIDMode              0
}

virtualhost Manufakturakawy {
  vhRoot                  /usr/local/lsws/MyDomain/
  configFile              $SERVER_ROOT/conf/vhosts/MyDomain/vhconf.conf
  allowSymbolLink         1
  enableScript            1
  restrained              1
}

listener Default {
  address                 *:8088
  secure                  0
  map                     Example *
}

listener SSL {
  address                 *:443
  secure                  1
  map                     MyDomain www.mydomain.com
}

vhTemplate centralConfigLog {
  templateFile            conf/templates/ccl.conf
  listeners               Default
}

vhTemplate EasyRailsWithSuEXEC {
  templateFile            conf/templates/rails.conf
  listeners               Default
}
suspendedVhosts           Example
在 vhconf.conf 文件中我有:
    docRoot                   /var/www/html/mydomain/
vhDomain                  MyDomain.com
vhAliases                 www.MyDomain.com
enableGzip                1

rewrite  {
  enable                  1
  autoLoadHtaccess        1
}

vhssl  {
  keyFile                 /etc/letsencrypt/live/www.MyDomain.com/privkey.pem
  certFile                /etc/letsencrypt/live/www.MyDomain.com/fullchain.pem
  certChain               1
  CACertPath              /etc/letsencrypt/live/www.MyDomain.com/fullchain.pem
  CACertFile              /etc/letsencrypt/live/www.MyDomain.com/fullchain.pem
}

最佳答案

你是说暂停按钮吗?它适用于我的测试服务器。见下图,
suspend
单击按钮后,服务器将在 中添加以下命令/usr/local/lsws/conf/httpd_config.conf 自动归档。

suspendedVhosts           Example
此外,从我的仪表板中删除功能作品。尽管您说这是全新安装,但我觉得这就像某处的权限问题,因此仪表板无法为您完成。单击仪表板时,我会检查/usr/local/lsws/logs/error.log 中是否生成了任何日志。
您还可以通过 SSH 控制台手动从配置文件更新虚拟主机映射作为一种解决方法。编辑 /usr/local/lsws/conf/httpd_config.conf
listener wordpress {
  address                 *:80
  secure                  0
  map                     Example *
}
listener wordpress {
  address                 *:80
  secure                  0
  map                     virtualhostname example.com,www.example.com
}
然后重启网络服务器
systemctl restart lsws

关于ubuntu - 无法删除虚拟主机 openlitespeed,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69661710/

相关文章:

python - 缓存字符串列表转换为列表

c++ - 在可以一次性丢弃的区域内动态构建对象

ubuntu - 如何将 awstats 与 OpenLiteSpeed WebAdmin 一起使用?

ubuntu - 如何在 Android Studio `Reopen Project` 列表中重命名项目?

Linux - 仅将新文件从一台服务器复制到另一台服务器

node.js - 入门 : Mongo, Angular , Node js

ruby - 构建 Ruby 并指定 OpenSSL 目录

reactjs - Graphql - Apollo Client/React - 缓存 - fetchMore 不更新查询的数据状态