Ruby On Rails With Apache And Mod_proxy Using .htaccess

If you want your rails app in the same apache html directory and use port 80 instead of 12001, use a .htaccess like this :

 

RewriteEngine   on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule (.*) http://www.your-domain.com:12001/$1 [P]
Was this article helpful?

mood_bad Dislike 0
mood Like 0
visibility Views: 10262

Need more information or have a question ?