简体   繁体   中英

Passenger 5 is listing public directory

I'm using Centos cPanel with Passenger, the app is working when I access in to the sections for example /home or /login but it displays the files when I access directly to the page / .

This is my .htaccess config

PassengerEnabled On
PassengerLoadShellEnvVars On
PassengerAppRoot /home/claude/rails/claude
PassengerRuby /usr/local/rvm/gems/ruby-2.0.0-p648/wrappers/ruby
RackEnv production
PassengerResolveSymlinksInDocumentRoot on

I already tried disabling autoindex

#LoadModule autoindex_module modules/mod_autoindex.so

but it doesn't let me restart apache.

Does anyone have resolved this issue before?

Thanks.

Done!

So the issue was that I installed first passenger-5.0.10 but for some reason Apache was trying to load passenger-5.0.30 but I was including the other version in httpd.conf so I reinstalled again passenger 5.0.30 and that was it.

Thanks.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM