Results 1 to 2 of 2

Thread: 'ProxyPass / http://localhost:8000/' broke .htaccess redirects

  1. #1
    Join Date
    Mar 2006
    Location
    Austin, TX
    Beans
    116
    Distro
    Kubuntu 11.04 Natty Narwhal

    'ProxyPass / http://localhost:8000/' broke .htaccess redirects

    I have a Ruby on Rails application setup behind Apache. Once I had setup proxypass:
    Code:
    ProxyPass / http://localhost:8000/
    ProxyPassReverse / http://localhost:8000/
    redirects in the .htaccess file no longer get redirected, and are replaced with rails' 404 page.
    This also turned awstats into a 404, but once I added:
    Code:
    ProxyPass /awstats !
    it became a '400 Bad Request' page.

    Logs have shown nothing except the apache access log:
    [16/May/2008:14:57:42 -0500] "GET /awstats HTTP/1.1" 400 313 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9b5) Gecko/2008050509 Firefox/3.0b5"

    Any have ideas? I'll sooo buy you a beer.

  2. #2
    Join Date
    Mar 2006
    Location
    Austin, TX
    Beans
    116
    Distro
    Kubuntu 11.04 Natty Narwhal

    Re: 'ProxyPass / http://localhost:8000/' broke .htaccess redirects

    Mongrel doesn't bother with .htaccess files.
    How can I redirect within mongrel, or better yet, apache before the pass to mongrel?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •