Find the answer to your Linux question:
Results 1 to 2 of 2
I'm using mod_proxy to mask some internal website URLs. Unfortunately, it appears the URL (which I can't change) uses absolutely URLs for some object references, which causes a double path ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Banned
    Join Date
    Dec 2002
    Location
    Texas
    Posts
    242

    Apache URL rewriting task


    I'm using mod_proxy to mask some internal website URLs.
    Unfortunately, it appears the URL (which I can't change)
    uses absolutely URLs for some object references, which
    causes a double path situation in the Request URI. Bad.

    Possible URLs...

    /path/subpath/script.js
    /path/path/subpath/script.js

    Is there a rewrite rule that I could use that could remove
    any double references to /path? I'm sure I can hack this
    out eventually, but does anyone know off the top of their
    heads so I can get sucker working?

    Thanks!

  2. #2
    Just Joined!
    Join Date
    May 2008
    Posts
    7
    Have you tried:
    gedit /etc/httpd/conf/httpd.conf
    And add the line:
    Alias /js /bla/bla/bla
    Then u can use /js/script.js i donnow.

Posting Permissions

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