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 8812191
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T03:32:59+00:00 2026-06-14T03:32:59+00:00

I use Apache as a reverse proxy. There is no web content on the

  • 0

I use Apache as a reverse proxy. There is no web content on the dedicated server itself. If a client requests a resource on the local Apache server, Apache should determine on which remote (proxied) server the resource exists and do a proxy rewrite to that server.

A snippet should (that currently does not work) should demonstrate, what i would do:

RewriteCond               http://200.202.204.11:3000%{REQUEST_URI}    -U
RewriteRule     ^(.*)$    http://200.202.204.11:3000$1                [P]

I spared out the rest of my configuration (ProxyPass, ProxyPassReverse, other RewriteCond,…) to focus on my problem:

How could I check if an external resource exists / is available before rewriting?

The -U option for RewriteCond returns alwas true. The -F option returns alwas false. Is there a working solution for my intent?

  • 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-06-14T03:33:00+00:00Added an answer on June 14, 2026 at 3:33 am

    After searching for weeks to get the solution I come to the conclusion: there is no reliable RewriteRule if an external ressource exists.

    You go much better if you address your service behind an reverse proxy via subdomains. E.g. ‘gitlab.youdomain.net’ if you want to address a ressource on your gitlab server behind your reverse proxy. So the reverse proxy does not become confused if the ressource is lying in the root directory ‘/’ of the gitlab server.

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

Sidebar

Related Questions

We use Apache as a reverse proxy server. This has been working well, but
We use Apache with Nginx(as reverse proxy) for more concurrency level because of the
My server guy wants to use apache, and also he wants to program a
I have configured my apache 2.2 server as a simple forward proxy using mod_proxy
I use apache commons http client to send data via post every second, is
Is there a configuration somewhere in Apache server that causes all pages to be
I'm trying to use squid as a reverse cache proxy in front of a
We need to set up a secure certificate on an Apache reverse proxy. We've
I am currently hosting 2 web applications on the same Apache server. Let's just
Is there any way to have a reverse proxy using http basic Authentication in

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.