2016-03-28 65 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服務部分這樣一個大問題。不要猶豫,重置它到出廠設置,因爲升級可以打破它。

相關問題