【发布时间】:2016-07-15 14:54:53
【问题描述】:
我运行 OS X 服务器已经 2 年了,或多或少遇到了麻烦。昨天,我更新到服务器 5.1,网络服务器完全崩溃了。所有设置都在服务器应用程序的 Web 部分面板中查看。
但是,在寻找该网站时,Safari 无法找到它。我在这个问题上挖掘了几个小时,发现 virtual_host_global.conf 只包含这个:
# This file is auto-generated by the Server application's
# configuration mechanism whenever settings are saved.
# The Listen directives are generated
# based on the VirtualHost directive inside
# each site configuration file found in this directory.
Listen 127.0.0.1:34543
Listen 127.0.0.1:34580
手动更新到这个之后
# This file is auto-generated by the web configuration
# mechanism whenever settings are saved.
# The Listen and NameVirtualHost directives are generated
# based on the VirtualHost directive inside
# each site configuration file found in this directory.
#
Listen *:443
Listen *:80
重启服务器后一切恢复正常。但是,如果我从服务器应用程序更改设置,应用程序会重写此文件并破坏所有内容。
我不明白为什么它会从简单的更新中中断。有谁知道如何使我的修改永久化?每次从服务器 UI 更改某些内容时,我需要更改服务器应用程序中的哪些配置文件或项目才能使其正常工作?
谢谢
【问题讨论】:
标签: apache virtualhost osx-elcapitan osx-server