OSX服务器:运行apache2但是“问题加载页面”

时间:2010-12-20 11:44:48

标签: macos apache2 osx-server

我已经安装了OSX Server 10.6,安装了所有更新,启动了运行的apache2:

sudo apachectl graceful

我在/ var / log / apache2 / errorlog

中看到了
[Fri Dec 17 10:11:49 2010] [notice] Apache/2.2.15 (Unix) configured -- resuming normal operations

另外

ps -ef | grep httpd

显示了几个过程:

    0 49388     1   0   0:00.05 ??         0:00.07 /usr/sbin/httpd -D FOREGROUND
   70 49389 49388   0   0:00.00 ??         0:00.00 /usr/sbin/httpd -D FOREGROUND
   70 49390 49388   0   0:00.00 ??         0:00.00 /usr/sbin/httpd -D FOREGROUND
   70 49391 49388   0   0:00.00 ??         0:00.00 /usr/sbin/httpd -D FOREGROUND
   70 49392 49388   0   0:00.00 ??         0:00.00 /usr/sbin/httpd -D FOREGROUND
...

在httpd.conf中我编辑了DocumentRoot:

ServerName bioinfo.mni.fh-giessen.de:80 
DocumentRoot "/Volumes/ServerHD2/Web_Documents"   
ErrorLog "/var/log/apache2/error_log" 
<Directory "/Volumes/ServerHD2/Web_Documents">     
   Order Allow,Deny  
   Allow from All 
</Directory>

语法没问题:

apachectl configtest
Syntax OK

然而,我在http://bioinfo.mni.fh-giessen.de得到了超时:

Problem loading page

有任何线索吗?

2 个答案:

答案 0 :(得分:0)

您确定编辑了正确的文件吗? OS X Server有一种不遵守标准的方法。实际配置条目不在/etc/httpd/httpd.conf中,而是在/ etc / apache2 / sites的子目录中。看看这个FAQ

我建议使用Server Admin实用程序来设置服务器。与手动获取配置相比,它将更容易,更快捷。一旦站点启动并运行,您随后可以随后添加或更改规则。

答案 1 :(得分:0)

几天内无法直接进行本地GUI访问,也无法通过远程桌面进行访问。我现在唯一的方法是ssh,但我很乐意在几天内尝试使用Server Admin实用程序。现在我被限制在命令行。是的,我编辑了/etc/apache2/httpd.conf和/etc/apache2/sites/0000_any_80_.conf,但没有用。是

sudo serveradmin fullstatus web

无论如何有启发性:

web:readWriteSettingsVersion = 1
web:totalKBytes = 0
web:emailRulesRunning = no
web:boundToKerberos = yes
web:teamsRunning = yes
web:postfixRunning = no
web:servicePortsRestrictionInfo = _empty_array
web:health = _empty_dictionary
web:currentThroughput = 0
web:passwordResetRunning = no
web:ApacheMode = 2
web:statusMessage = ""
web:apacheVersion = "Unknown"
web:state = "RUNNING"
web:setStateVersion = 1
web:apacheState = "RUNNING"
web:proxyState = "STOPPED"
web:htCacheCleanRunning = no
web:calendarRunning = yes
web:servicePortsAreRestricted = "YES"
web:currentRequestsBy10 = 0
web:logPaths:logPathsArray = _empty_array
web:totalRequests = 0
web:startedTime = ""