2013-04-24 192 views
0

我在mac os x 10.7上運行我的ruby on rails應用程序,在Apache Web Server上使用Passenger插件。我的httpd.conf文件如下。阿帕奇網絡服務器錯誤

LoadModule passenger_module /Users/Ahmad/.rvm/gems/ruby-1.9.3-p392/gems/passenger-3.0.19/ext/apache2/mod_passenger.so 
PassengerRoot /Users/Ahmad/.rvm/gems/ruby-1.9.3-p392/gems/passenger-3.0.19 
PassengerRuby /Users/Ahmad/.rvm/wrappers/ruby-1.9.3-p392/ruby 
NameVirtualHost *:80 
<VirtualHost *:80> 
    ServerName qchext.local 
    # !!! Be sure to point DocumentRoot to 'public'! 
    DocumentRoot "/Users/Ahmad/Sites/redbytes_projects/qchext/public"  
    <Directory "/Users/Ahmad/Sites/redbytes_projects/qchext/public"> 
    # This relaxes Apache security settings. 
    AllowOverride all 
    # MultiViews must be turned off. 
    Options -MultiViews 
    </Directory> 
</VirtualHost> 
ServerName qchext.local 

的error_log文件

[notice] caught SIGTERM, shutting down 
[notice] Digest: generating secret for digest authentication ... 
[notice] Digest: done 
[warn] mod_bonjour: Skipping user 'Ahmad' - no valid index file. 
[notice] Apache/2.2.22 (Unix) Phusion_Passenger/3.0.19 DAV/2 configured -- resuming normal operations 

請指導我,我已經什麼冤屈。

+0

您是否正在使用OSX? – 2013-04-24 06:39:17

回答

0

您看到的SIGTERM用於重新啓動Apache,您是否安裝了mod_passenger的最新Apache,而不是與OSX捆綁在一起的Apache(假設您正在運行RoR)。

+0

哦,我忘了更新它。我必須安裝最新的apache版本的步驟是什麼? – 2013-04-24 06:44:08

+0

這一切都取決於您的設置。如果你使用'macports',你可以使用'port install apache'安裝它。 – 2013-04-24 06:45:23

+0

不,我不使用macports ..我用戶家釀造。 – 2013-04-24 06:55:56