Find the answer to your Linux question:
Results 1 to 2 of 2
hi i am working with apache 1.3.27 Code: ./configure --prefix=/etc/httpd/ --activate-module=src/modules/php4/libphp4.a --enable-module=ssl --disable-module=cgi --enable-module=proxy my problem is when apache need to proxy a page with broken path ( the user ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2004
    Posts
    4

    working with mod_proxy


    hi
    i am working with apache 1.3.27
    Code:
    ./configure --prefix=/etc/httpd/ --activate-module=src/modules/php4/libphp4.a  --enable-module=ssl --disable-module=cgi --enable-module=proxy
    my problem is when apache need to proxy a page with broken path ( the user can't see the image)
    "[img]images/6.jpg[/img] "
    but if the page has full path it work good.
    ""

    my http.conf (proxy section)
    Code:
    #<IfModule mod_proxy.c>
        ProxyRequests Off
    
    #    <Directory proxy&#58;*>
    #        Order deny,allow
    #        Deny from all
    #        Allow from .your-domain.com
    #    </Directory>
    
        #
        # Enable/disable the handling of HTTP/1.1 "Via&#58;" headers.
        # &#40;"Full" adds the server version; "Block" removes all outgoing Via&#58; headers&#41;
        # Set to one of&#58; Off | On | Full | Block
        #
    
    ProxyVia On
    #ProxyRemote * http&#58;//194.133.187.227&#58;8080
    
    ProxyPass /pn http&#58;//www.hamakor.org.il/
    ProxyPassReverse /pn http&#58;//www.hamakor.org.il/
    
    ProxyPass /p http&#58;//212.117.156.55/index.html
    ProxyPassReverse /p http&#58;//212.117.156.55/index.html
    
    ProxyPass /pin http&#58;//10.0.1.50
    ProxyPassReverse /pin http&#58;//10.0.1.50
    
    ProxyPass /pini http&#58;//10.0.1.250/EDS_ATP/
    ProxyPassReverse /pini http&#58;//10.0.1.250/EDS_ATP/
        #
        # To enable the cache as well, edit and uncomment the following lines&#58;
        # &#40;no cacheing without CacheRoot&#41;
        #
    #    CacheRoot "/usr/local/apache/proxy"
    #    CacheSize 5
    #    CacheGcInterval 4
    #    CacheMaxExpire 24
    #    CacheLastModifiedFactor 0.1
    #    CacheDefaultExpire 1
    #    NoCache a-domain.com another-domain.edu joes.garage-sale.com
    
    #</IfModule>
    # End of proxy directives.
    10x

  2. #2
    Linux Guru
    Join Date
    Apr 2003
    Location
    London, UK
    Posts
    3,284

    Re: working with mod_proxy

    Quote Originally Posted by amihay_t
    "[img]images/6.jpg[/img] "
    but if the page has full path it work good.
    Try
    Code:
    [img]/EDS_ATP/images/6.jpg[/img]

Posting Permissions

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