I'm trying to setup a Rails application (Project Fedena) on the following Server configuration. I am using the virtual host configuration below. I get a 403 when I visit the IP/Domain. There's only one user on this server, root.

Google Cloud - Ubuntu 14.04

  • Rails 2.3.5
  • Ruby 1.8.7
  • Rubygems 1.3.7
  • Apache 2.4
  • Phusion Passenger version 5.0.2


<VirtualHost *:80>
        ServerName enomy.com
        ServerAlias www.enomy.com
        ServerAdmin webmaster@localhost
        DocumentRoot /srv/fedena/public
        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined
        <Directory "/srv/fedena/public">
                Options FollowSymLinks
                AllowOverride None
                Order allow,deny
                Allow from all
                Options -MultiViews
                Require all granted
        RailsEnv development
        RailsBaseURI /srv/fedena </VirtualHost>

tail -f /var/log/apache2/*

==> /var/log/apache2/error.log <== [Wed Mar 11 22:00:01.715324 2015] [autoindex:error] [pid 31091:tid 140200239867648] [client] AH01276: Cannot serve directory /srv/fedena/public/: No matching DirectoryIndex (index.html,index.cgi,index.pl,index.php,index.xhtml,index.htm) found, and server-generated directory index forbidden by Options directive

==> /var/log/apache2/access.log <== - - [11/Mar/2015:22:00:01 +0000] "GET / HTTP/1.1" 403 492 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.111 Safari/537.36"

Any help is appreciated.

  • See also stackoverflow.com/questions/18106085/… – rogerdpack May 12 '15 at 4:18
  • Were you by chance able to solve this problem? I'm curious if you were able to run your rails two app on passenger. I'm having the same problem. – akaHeimdall Jun 6 '16 at 18:16
  • add an index file such as the description of the error log to the documentroot and see what happens. I don't really see an issue, you ask for a directory and you have no default page nor indexes allowed, that's normal behaviour! – ezra-s Feb 9 '17 at 22:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.