# Rails 2.2 + Apache 2.2 + RewriteBase /app = broken

**URL:** <https://www.ruby-forum.com/t/rails-2-2-apache-2-2-rewritebase-app-broken/161550>\
**Category:** Rails\
**Created:** [February 27, 2009, 10:18am UTC](https://www.ruby-forum.com/t/rails-2-2-apache-2-2-rewritebase-app-broken/161550 "2009-02-27T10:18:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ari](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/5f8ce5/32.png) [@ari](https://www.ruby-forum.com/u/ari)\
**Post date:** [February 27, 2009, 10:18am UTC](https://www.ruby-forum.com/t/rails-2-2-apache-2-2-rewritebase-app-broken/161550/1 "2009-02-27T10:18:19Z")

</div>

I’m trying to run a rails app under an alias like this:

Alias /app /var/www/railsapp/public  
RewriteBase /app  
…

I am using the same configuration that has worked for the app under  
Rails 1, but since I upgraded it to the latest version I get:

* * *

The page you were looking for doesn’t exist.

## You may have mistyped the address or the page may have moved.

In the application log, I find that it is looking for routes with /app  
at the beginning even though RewriteBase was supposed to take care of  
that. What am I missing? How can I make my app happy again? Full  
source code is here:

[https://assembly.cornell.edu/trac.fcgi/cicero](https://assembly.cornell.edu/trac.fcgi/cicero)
