Error 403 - Passenger 5.0.7 + APACHE 2.4.12

206 views
Skip to first unread message

sebasti...@bairesdev.com

unread,
May 11, 2015, 3:42:52 PM5/11/15
to phusion-...@googlegroups.com
Hello everyone, i could go through apache configuration and i have my .conf files properly installed. However, i'm constantly getting forbidden error. My log is as listed:


Hello everyone, i could go through apache configuration and i have my .conf files properly installed. However, i'm constantly getting forbidden error. My log is as listed:









Mon May 11 16:37:34.151411 2015] [mpm_prefork:notice] [pid 83517] AH00173: SIGHUP received.  Attempting to restart








[ 2015-05-11 16:37:34.5579 83661/0x10e6c4000 age/Hel/Main.cpp:455 ]: Signal received. Gracefully shutting down... (send signal 2 more time(s) to force shutdown)


[ 2015-05-11 16:37:34.5631 83663/0x1024e0000 age/Log/Main.cpp:349 ]: Signal received. Gracefully shutting down... (send signal 2 more time(s) to force shutdown)


[ 2015-05-11 16:37:34.6322 83663/0x7fff79d8b310 age/Log/Main.cpp:411 ]: Received command to shutdown gracefully. Waiting until all clients have disconnected...


[ 2015-05-11 16:37:34.6322 83661/0x7fff79d8b310 age/Hel/Main.cpp:814 ]: Received command to shutdown gracefully. Waiting until all clients have disconnected...


[ 2015-05-11 16:37:34.6559 83661/0x10e747000 Ser/Server.h:455 ]: [ServerThr.2] Shutdown finished


[ 2015-05-11 16:37:34.6559 83661/0x10e7ca000 Ser/Server.h:455 ]: [ServerThr.3] Shutdown finished


[ 2015-05-11 16:37:34.6559 83661/0x10e6c4000 Ser/Server.h:455 ]: [ServerThr.1] Shutdown finished


[ 2015-05-11 16:37:34.6561 83661/0x10e84d000 Ser/Server.h:455 ]: [ServerThr.4] Shutdown finished


[ 2015-05-11 16:37:34.6561 83663/0x1024e0000 Ser/Server.h:455 ]: [LoggerAdminServer] Shutdown finished


[ 2015-05-11 16:37:34.6643 83661/0x10e8d0000 Ser/Server.h:455 ]: [AdminServer] Shutdown finished


[ 2015-05-11 16:37:34.6961 83663/0x7fff79d8b310 age/Log/Main.cpp:436 ]: PassengerAgent logger shutdown finished


[ 2015-05-11 16:37:34.8085 83661/0x7fff79d8b310 age/Hel/Main.cpp:876 ]: PassengerAgent server shutdown finished


[ 2015-05-11 16:37:35.8185 83760/0x7fff79d8b310 age/Wat/Main.cpp:1264 ]: Starting PassengerAgent watchdog...


[ 2015-05-11 16:37:35.9322 83762/0x7fff79d8b310 age/Hel/Main.cpp:891 ]: Starting PassengerAgent server...


[ 2015-05-11 16:37:35.9329 83762/0x7fff79d8b310 age/Hel/Main.cpp:234 ]: PassengerAgent server running in multi-application mode.


[ 2015-05-11 16:37:35.9427 83762/0x7fff79d8b310 age/Hel/Main.cpp:645 ]: PassengerAgent server online, PID 83762


[ 2015-05-11 16:37:35.9557 83764/0x7fff79d8b310 age/Log/Main.cpp:442 ]: Starting PassengerAgent logger...


[ 2015-05-11 16:37:35.9576 83764/0x7fff79d8b310 age/Log/Main.cpp:323 ]: PassengerAgent logger online, PID 83764


[Mon May 11 16:37:35.959006 2015] [ssl:warn] [pid 83517] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]


[Mon May 11 16:37:36.094437 2015] [ssl:warn] [pid 83517] AH01909: oneview.dev.iseatz.com:443:0 server certificate does NOT include an ID which matches the server name


[Mon May 11 16:37:36.104875 2015] [mpm_prefork:notice] [pid 83517] AH00163: Apache/2.4.12 (Unix) PHP/5.4.40 Phusion_Passenger/5.0.7 OpenSSL/1.0.2a configured -- resuming normal operations


[Mon May 11 16:37:36.175561 2015] [core:notice] [pid 83517] AH00094: Command line: '/usr/local/Cellar/httpd24/2.4.12/bin/httpd'


[Mon May 11 16:37:37.080884 2015] [autoindex:error] [pid 83769] [client ::1:51247] AH01276: Cannot serve directory /Library/WebServer/Documents/passengerproject/public/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive



My conf file for this vhost is this:

<VirtualHost *:80>
   ServerName passengerproject.com
   ServerAlias passengerproject.com
   DocumentRoot /Library/WebServer/Documents/passengerproject/simian/public

    RailsEnv development
    RailsSpawnMethod conservative

    <Directory "/Library/WebServer/Documents/passengerproject/simian/public">
       Options +FollowSymLinks +Includes
       AllowOverride None
       Require all granted
    </Directory>

    RailsBaseURI /
    AddHandler server-parsed .html

</VirtualHost>

<VirtualHost *:443>
   ServerName passengerproject.com
   ServerAlias passengerproject.com
   RequestHeader set X_FORWARDED_PROTO 'https'
   DocumentRoot /Library/WebServer/Documents/passengerproject/simian/public
   RailsEnv development
   RailsSpawnMethod conservative

   <Directory "/Library/WebServer/Documents/passengerproject/simian/public">
      Options FollowSymLinks
      AllowOverride None
      Require all granted
   </Directory>

   RailsBaseURI /

   SSLEngine on
   SSLProxyEngine On
   SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
   SSLCertificateFile /private/etc/apache2/ssl.crt/STAR_passengerproject_com.crt
   SSLCertificateKeyFile /private/etc/apache2/ssl.crt/STAR_passengerproject_com.key
   SSLCertificateChainFile /private/etc/apache2/ssl.crt/STAR_passengerproject_com.ca-bundle

   <FilesMatch "\.(cgi|shtml|phtml|php)$">
      SSLOptions +StdEnvVars
   </FilesMatch>

   <Directory "/Library/WebServer/CGI-Executables">
      SSLOptions +StdEnvVars
   </Directory>

   BrowserMatch ".*MSIE.*" \
      nokeepalive ssl-unclean-shutdown \
      downgrade-1.0 force-response-1.0

   CustomLog "/private/var/log/apache2/ssl_request_log" \
      "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"

</VirtualHost>
Can anybody give me any clue about this? i'm constantly trying to go through this error but nothing seems to change (most changes has been done on the vhost conf file, like options, or allow from.
Thanks in advance!


S

Daniel Knoppel

unread,
May 12, 2015, 5:52:56 AM5/12/15
to phusion-...@googlegroups.com
The error mentions this path:
AH01276: Cannot serve directory /Library/WebServer/Documents/passengerproject/public/: 

..while you posted a configuration for this path:
DocumentRoot /Library/WebServer/Documents/passengerproject/simian/public

It looks like there is a different config active than the one you posted? Did you try totally stopping and starting apache again (not just restarting)?

- Daniel

sebasti...@bairesdev.com

unread,
May 12, 2015, 1:44:22 PM5/12/15
to phusion-...@googlegroups.com
Thanks Daniel Knopel, in fact, those paths were edited, both points to the same folder (i've mispelled them here). I don't know if it's something related to my vhost.conf file or my folder's permissions.

Daniel Knoppel

unread,
May 13, 2015, 5:53:53 AM5/13/15
to phusion-...@googlegroups.com
And my second question? Did you stop and start apache (not just restarting)?

Does your app have a config.ru?

- Daniel
Reply all
Reply to author
Forward
0 new messages