Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5982677
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T22:07:16+00:00 2026-05-22T22:07:16+00:00

I have configured my apache 2.2 server as a simple forward proxy using mod_proxy

  • 0

I have configured my apache 2.2 server as a simple forward proxy using mod_proxy and mod_proxy_http.

When the client requests a URL of the following format:

http://specific.host.com/specific?specificarg1=(.+)&specificarg2=(.+)&specificarg3=specificvalue

to be requested in a rewritten form where the values for specificarg1 and specificarg2 get replaced by values defined in my server config.

It would be also possible not to use regex but to rewrite a specific url to another specific url, but i would prefer with regex matching.

So after reading the documentsations for mod_rewrite, mod_proxy and so I tried something like the following to get some sort of rewrite working at all:

RewriteRule .* http://www.google.com/ [P,L]

just like that in the server config, nothing gets rewriten when surfing over the proxy

<VirtualHost *:80>
ServerName domain-i-tried-to-surf-to.com
`RewriteRule .* http://www.google.com/ [P,L]
</VirtualHost>

no luck either

ProxyPass(Reverse) / http://www.google.com
ProxyPass(Reverse) /path/i/tried/to/surf/to http://www.google.com

no luck with that too

ProxyRemote * http://www.google.com

no luck as well

I also tried to put rewrite rules into proxymatch directives but I am just unable to rewrite a url. Can somebody point me in the right direction?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T22:07:16+00:00Added an answer on May 22, 2026 at 10:07 pm

    You first need to add a RewriteEngine on statement at the very beginning to even get mod_rewrite to process any rules.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using CentOS5, I have Apache configured with the following directives. Alias /pscript/ /var/www/pscript/ <Directory
I have a tomcat server configured (by mod_jk) to work through Apache Httpd server.
I have installed Apache on my server (I wasn't using Apache) and special characters
I have configured my Django app to run under Apache+FastCGI on Linux (Ubuntu, if
I'm using Eclipse 3.4 and have configured the Java code formatter with all of
I am using UrlRewrite in a JSP project over JBoss . I have configured
Just installed and configured mod_python 3.2.8 on a CentOS 5 (Apache 2.2.3) server with
I have urls of the following format (I write it as as aregex): http://exampledomain\.com/files/.+
I have configured my default page to be say abcd.aspx and is under ~/View//abcd.aspx
I have configured Tomcat to use LDAP / AD. How can I get more

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.