WikiGardening in progress. We’re combining/reorganizing several related howto’s at the moment, apologies for the dust. As a first stage, we are gathering all the related questions and their answers in one place and this is the place.
I installed rails under an alias in my apache installation:
Alias /booking "/var/www/booking/public" <Directory /var/www/booking/public/> Options <span class="newWikiWord">ExecCGI<a href="http://wiki.rubyonrails.org/rails/pages/ExecCGI">?</a></span> <span class="newWikiWord">FollowSymLinks<a href="http://wiki.rubyonrails.org/rails/pages/FollowSymLinks">?</a></span> <span class="newWikiWord">AllowOverride<a href="http://wiki.rubyonrails.org/rails/pages/AllowOverride">?</a></span> all Allow from all Order allow,deny
This made the default RewriteXXX?’s in public/.htaccess go haywire.
The easy solution to this problem was to add a RewriteBase to the .htaccess:
<a href="http://wiki.rubyonrails.org/rails/pages/RewriteBase" class="existingWikiWord">RewriteBase</a> /booking
This seems to make everything work like intended.
—MartinKihlgren
WikiGardening in progress. We’re combining/reorganizing several related howto’s at the moment, apologies for the dust. As a first stage, we are gathering all the related questions and their answers in one place and this is the place.
I installed rails under an alias in my apache installation:
Alias /booking "/var/www/booking/public" <Directory /var/www/booking/public/> Options <span class="newWikiWord">ExecCGI<a href="http://wiki.rubyonrails.org/rails/pages/ExecCGI">?</a></span> <span class="newWikiWord">FollowSymLinks<a href="http://wiki.rubyonrails.org/rails/pages/FollowSymLinks">?</a></span> <span class="newWikiWord">AllowOverride<a href="http://wiki.rubyonrails.org/rails/pages/AllowOverride">?</a></span> all Allow from all Order allow,deny
This made the default RewriteXXX?’s in public/.htaccess go haywire.
The easy solution to this problem was to add a RewriteBase to the .htaccess:
<a href="http://wiki.rubyonrails.org/rails/pages/RewriteBase" class="existingWikiWord">RewriteBase</a> /booking
This seems to make everything work like intended.
—MartinKihlgren