2016-03-28 66 views
1

它已经2年我运行OS X服务器,有或多或少的麻烦。昨天,我更新到服务器5.1和Web服务器完全崩溃。所有设置都在服务器应用程序的Web部分面板中显示。埃尔卡皮坦OS X服务器5.1升级休息虚拟主机

enter image description here

但是要寻找的网站时,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更改某些内容时都可以使用它。

谢谢

回答

1

我终于解决了我的问题!

首先,我发现这里的文档

/Library/Server/Web/Config/apache2/ReadMe.txt

在本文中,我发现了一个命令重置服务器服务出厂设置(千万不要在保存数据,/图书馆/服务器/网络/文件夹)

须藤/Applications/Server.app/Contents/ServerRoot/usr/sbin/serveradmin 命令web:command = restoreFactorySettings

重置后,网站服务很好地工作。我真的不知道服务器更新期间出了什么问题。但我怀疑的东西,因为我发现我的默认网站一个新的重定向参数不存在出厂设置重置

Default site has now 1 redirect

这里之前重定向面板的细节:

Detail of redirect

因此,如果你有关于新的OS X服务器应用程序的Web服务部分这样一个大问题。不要犹豫,重置它到出厂设置,因为升级可以打破它。

相关问题