Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I'm trying to install a Rails app on company.com/myapp. How I tell Apache to ignore "myapp" from the request string ?

Thanks, Mickael.

Edit: it does not seems possible wih Rails (Strange!).
So I've ask my admin to setup myapp.mydomain.com for me.

share|improve this question

1 Answer 1

IIRC, you should be able to use

Alias / /myapp/     

In your apache configuration but this won't trick your application in spitting out the correct links.

So a request to

could also be written as

But the links presented to the UA would still be looking like
http://example.com/myapp/where/i/want/to/go if the application itself does not handle this.

share|improve this answer
Thanks, but this does not work. My application is still getting the request but with /myapp in the query string. –  MickTaiwan Nov 9 '10 at 17:50

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.