I am trying to install Redmine, and I have a Fusion passenger to work with any directory other than DocumentRoot There is a problem in / P>
I have put the public directory on the redirect to ~ / www / public / entry / redmine.mysite.com/, and in the rest directory ~ / www / app / redmine.mysite.com /.
I have added the following line to the public folder in the .htaccess file:
PassengerAppRoot ~ / www / app / redmine.mysite.com
< P> Whenever I try to load the page, it does not give me a plain Mozilla file that does not find the page. Any thoughts?
Additional information:
I have a codebase so that the request given in the Apache's specified entry folder can resolve the URI:
DocumentRoot ~ / www / public
This folder contains an .htaccess file, which includes the following rule:
RewriteCond $ {lowercase:% {SERVER_NAME}} ^ (Dev \.)? (Stg \.)? (World Wide Web..)? (. *) $ Rewrit ECond% {REQUEST_URI}! ^ / Resources /(.*)$ Rewrite rules! If I create a new VirtualHost for PortDirectRoot = ~ / www / public / entry / redmine.mysite.com / entry / entry /% 4% {REQUEST_URI}
With, everything loads properly.
However, if I use the mod_rewrite-based resolution of my codebase, then I do not get a page found error.
If I go to redmine.mysite.com/404.html, then it loads the 404.html page into the correct folder.
If I change the Passenger AppRoot to ~ / www / app / redmine.mysite.com/sort, then I am informed that this directory is not a valid ruby on Rail Application Root .
It seems that the solution was to set RailsBaseURI to relative to DocumentRoot on the server, not REQUEST_URI!
I thought that this refers to the real URI string, but it has been found that this is not the case!
Comments
Post a Comment