Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Working With Apache + Mod_proxy, howto use mod_proxy ?
amihay_t
post Apr 20 2004, 02:04 AM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 2
Joined: 10-August 03
Member No.: 1,238



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
"<img src="images/6.jpg" width="100" height="100" /> "
but if the page has full path it work good.
"<img src="http://10.0.1.250/EDS_ATP/images/6.jpg" width="100" height="100" />"

my http.conf (proxy section)
Code:

#<IfModule mod_proxy.c>
ProxyRequests Off

# <Directory proxy:*>
# Order deny,allow
# Deny from all
# Allow from .your-domain.com
# </Directory>

#
# Enable/disable the handling of HTTP/1.1 "Via:" headers.
# ("Full" adds the server version; "Block" removes all outgoing Via: headers)
# Set to one of: Off | On | Full | Block
#

ProxyVia On
#ProxyRemote * http://194.133.187.227:8080

ProxyPass /pn http://www.hamakor.org.il/
ProxyPassReverse /pn http://www.hamakor.org.il/

ProxyPass /p http://212.117.156.55/index.html
ProxyPassReverse /p http://212.117.156.55/index.html

ProxyPass /pin http://10.0.1.50
ProxyPassReverse /pin http://10.0.1.50

ProxyPass /pini http://10.0.1.250/EDS_ATP/
ProxyPassReverse /pini http://10.0.1.250/EDS_ATP/
#
# To enable the cache as well, edit and uncomment the following lines:
# (no cacheing without CacheRoot)
#
# 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
Go to the top of the page
 
+Quote Post
hughesjr
post Apr 22 2004, 06:04 AM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



I think you need to change:

<img src="images/6.jpg" width="100" height="100" />

to

<img src="/images/6.jpg" width="100" height="100" />


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 23rd October 2017 - 02:07 PM