+ Post New Thread
Results 1 to 6 of 6
*nix Thread, Apache2 ProxyHTMLURLMap in Technical; I've got mod_proxy and mod_proxy_html installed. Currently the site is being proxied fine. But the links that are http://192.168.2.20 are ...
  1. #1

    Join Date
    Jan 2007
    Location
    Durham, UK
    Posts
    328
    Thank Post
    33
    Thanked 17 Times in 12 Posts
    Rep Power
    20

    Apache2 ProxyHTMLURLMap

    I've got mod_proxy and mod_proxy_html installed. Currently the site is being proxied fine. But the links that are http://192.168.2.20 are not getting rewriten by mod_proxy_html to be correct. I've tried many different combinations of strings for ProxyHTMLURLMap but none seem to make a difference. Its running on ubuntu 8.10

    So anyone have any ideas? :P
    Code:
    <VirtualHost *>
            ServerName mb.jacknet.co.uk
            ###Proxy to MB Host 192.168.2.20
            <Location "/">
                    ProxyPass http://192.168.2.20/
                    ProxyPassReverse http://192.168.2.20/
                    ProxyHTMLURLMap http://192.168.2.20/ /
                    order deny,allow
                    allow from all
            </Location>
    </VirtualHost>
    Jack

  2. #2

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,859
    Thank Post
    412
    Thanked 777 Times in 650 Posts
    Rep Power
    182
    I don't use mod_proxy_http exactly because documentation is a problem. Just the reverse examples from the mod_proxy page should do what you're after.

  3. #3

    Join Date
    Jan 2007
    Location
    Durham, UK
    Posts
    328
    Thank Post
    33
    Thanked 17 Times in 12 Posts
    Rep Power
    20
    But i need the URL's rewriting and mod_proxy alone can't do that can it?

  4. #4

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,859
    Thank Post
    412
    Thanked 777 Times in 650 Posts
    Rep Power
    182
    What exactly do you want to do?

  5. #5

    Join Date
    Jan 2007
    Location
    Durham, UK
    Posts
    328
    Thank Post
    33
    Thanked 17 Times in 12 Posts
    Rep Power
    20
    Rewrite the links on the page's proxied to be the correct external site. Cause currently they're saying 192.168.2.20/etc...

    By the looks of mod_proxy_html it should be working.

  6. #6

    localzuk's Avatar
    Join Date
    Dec 2006
    Location
    Minehead
    Posts
    17,684
    Thank Post
    516
    Thanked 2,452 Times in 1,898 Posts
    Blog Entries
    24
    Rep Power
    832
    I've just had to do this myself and this is the code I used:

    Code:
     ProxyRequests Off
            #ProxyPreserveHost On
            ProxyPass /oliver/ http://app1/oliver/
    
            <Location /oliver/>
                    ProxyPassReverse /
                    ProxyHTMLURLMap http://app1/ /
            </Location>
    And that seemed to work...

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 22
    Last Post: 20th June 2014, 10:41 PM
  2. Replies: 8
    Last Post: 20th November 2008, 09:19 AM
  3. Apache2, Ubuntu and proxying
    By localzuk in forum *nix
    Replies: 5
    Last Post: 7th June 2008, 10:12 PM
  4. Apache2 SSL
    By Jackd in forum *nix
    Replies: 12
    Last Post: 5th December 2007, 01:15 PM
  5. Apache2 & LDAP
    By jasonyates in forum How do you do....it?
    Replies: 4
    Last Post: 6th November 2007, 10:03 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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