ruby - Why does my Rails App work after I disabled the Virtual Host? (Phusion Passenger + Apache2) -


today installed new home server , setup ruby on rails , server environment. used this guide things started phusion passenger (all exact same(besides servername)).

after enabled virtual host , restarted apache2, none of routes work, files in public rails folder. googled solution found nothing, have helped me.

so, after while, gave , disabled virtual host again. than, when visited site again, routes okay. though virtual host shouldn't point rails app anymore (i'm new apache2s virtual host, don't quite understand them).

now question is, why work? , why url still point rails app? want understand it, can reproduce steps when needed. expressed myself enough.

greetings

if you're seeing files listed sounds have options indexes enabled where. try grepping through /etc/httpd/mods-enabled options indexes.

<directory /path/to/directory>   options indexes </directory> 

as why it's working after deleting virtual host. suggest looking through other mods enabled. there may have been conflicting virtual host.


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -