Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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
http://example.com/myapp/where/i/want/to/go

could also be written as
http://example.com/where/i/want/to/go

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

 
discard

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.