Forum Moderators: phranque

Message Too Old, No Replies

Need help in configuring the rewrite rule.

need to rewrite html files in reverse proxy..

         

patchai

12:40 pm on Dec 29, 2006 (gmt 0)

10+ Year Member



Hi,

I am totally new to Reverse proxy...So far we have configured this

ProxyRequests Off
ProxyPass /cheetah [VISHWA:8080...]
ProxyPass /PlayVue [localhost:8080...]
ProxyPassReverse /cheetah [VISHWA:8080...]
ProxyPassReverse /PlayVue [localhost:8080...]

need help in writing the .htaccess

The task is to have two webserver and one proxy server.That is been configured..

i need help in rewriting...i have no idea what these things are

RewriteCond %{HTTP_REFERER}!^$
RewriteCond %{HTTP_REFERER}!^http://(.*\.)?quux-phoo\.com [NC]
RewriteRule \.(gif夸pg夸peg如ng妃pg妃peg安mv地vi妃ov地sf存wf)$ - [NC,F]

any help would be greatly appriciated.

i need the browser to request for a page in the webserver and the reverse proxy should display a page saying modified by reverse proxy..

Help plzzzzz..........

jdMorgan

5:57 pm on Dec 29, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm sorry, the question isn't clear.

If you simply want to have a front-end server that passes two groups of requests to their two respective back-end servers, then ONLY a reverse-proxy is needed. A review of the Apache mod_proxy documentation [httpd.apache.org] should make this clear and will be worthwhile.

The mod_rewrite code you show looks like an anti-hotlinking routine to prevent others from displaying your images and multimedia on their own web sites by using <img src="http//{your_domain.your_image}"> and/or <embed> tags on their pages.

A search [google.com] of webmaster world for "hotlinking rewriterule" will turn up hundreds of threads on this subject.

Jim

patchai

5:36 am on Dec 30, 2006 (gmt 0)

10+ Year Member



thank you so much for your information...I will try out this and let you know..

patchai

6:29 am on Dec 30, 2006 (gmt 0)

10+ Year Member



RewriteEngine On
RewriteBase /depot/
RewriteRule ^depot/(.*)$ [localhost:2222...] [P]

RewriteCond %{HTTP_REFERER}!^http://kanchangenga:2222/ [NC]
RewriteRule .*\.(jpe?g¦gif¦bmp¦png)$ img/nohotlink.jpe [L]

the image doesnt get repalced..can you figure out what i am doing wrong..

jdMorgan

4:09 pm on Dec 30, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Did you flush your browser cache before testing?

Does your RewriteBase apply to both rules? If not, set it to "/" before the second rule.

Jim