OSX 服务器:apache2 正在运行,但“加载页面时出现问题”;

发布于 2024-10-08 21:04:19 字数 1342 浏览 3 评论 0原文

我已经设置了 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

有任何线索吗?

I have setup OSX Server 10.6, all updates installed, started apache2, which is running:

sudo apachectl graceful

I see in /var/log/apache2/errorlog

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

Also

ps -ef | grep httpd

shows several processes:

    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
...

In httpd.conf I edited 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>

Syntax is OK:

apachectl configtest
Syntax OK

Yet, I get timeouts at http://bioinfo.mni.fh-giessen.de :

Problem loading page

Any clue ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

緦唸λ蓇 2024-10-15 21:04:19

您确定您编辑了正确的文件吗? OS X Server 有一种不遵守标准的方式。实际的配置条目不在/etc/httpd/httpd.conf中,而是在/etc/apache2/sites的子目录中。查看此常见问题解答

我建议使用服务器管理实用程序来设置服务器。这比尝试手动正确配置要容易得多、快捷得多。站点启动并运行后,您可以随时添加或更改规则。

Are you sure you edited the right file? OS X Server has a way of not keeping to standards. The actual configuration entries are not in /etc/httpd/httpd.conf, but in subdirectories of /etc/apache2/sites. Check out this FAQ.

I would recommend using the Server Admin utility to set up the server. It will be a lot easier and quicker than trying to get the configuration right manually. You can always add or change rules later, once the site is up and running.

意中人 2024-10-15 21:04:19

几天内无法直接进行本地 GUI 访问,也无法通过远程桌面进行访问。我现在唯一的方法是 ssh,但几天后我将很乐意尝试服务器管理实用程序。目前我仅限于命令行。是的,我编辑了 /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 = ""

No direct local GUI access possible for a few days, no access via Remote Desktop either. My only way is ssh right now, but I will be happy to try Server Admin utility in a few days. For now I am restricted to the command line. Yes, I edited both /etc/apache2/httpd.conf and /etc/apache2/sites/0000_any_80_.conf, without avail. Is

sudo serveradmin fullstatus web

anyhow instructive :

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 = ""

?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文