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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:32:02+00:00 2026-05-23T18:32:02+00:00

I have an Apache server running on Linux. On the same host I’m running

  • 0

I have an Apache server running on Linux. On the same host I’m running Xen with Windows Server 2008 + IIS. Windows gets a different IP address.

The host lives behind a NAT and I’ve configured it to direct port 80 to Linux and 8080 to Windows.

Apache offers a virtual host to handle incoming requests but these need to just be redirected to IIS, therefore my rewrite rule can be expressed as follows:

<VirtualHost ...>
ServerName www.firstdomain.com
...
RewriteEngine On
RewriteOptions Inherit
RewriteRule ^/(.*) http://www.seconddomain.com:8080/$1 [R,L]

This works fine since a request for www.seconddomain.com comes into the Apache VH, which rewrites the URL as www.secondomain.com:8080 and thus the browser now lands on IIS.

My question: I don’t want the user to see that the URL changed; I want it to behave the way that the passthrough option for rules works.

How can I accomplish this? And, if rewrite rules is the wrong approach, what is a better one?

Update

I found the [P]roxy flag for rules. This (almost) works great. I can put a file in the root of my IIS and reach it via http://www.seconddomain.com/tst.html – however, references within the document don’t get redirected properly e.g. the <img src='/images/tst.jpg' /> fails, showing there should have been an image in its place… what else do I need?

  • 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-23T18:32:03+00:00Added an answer on May 23, 2026 at 6:32 pm

    ok, it all works. I was just being dumb. the [P] is exactly what I needed.

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

Sidebar

Related Questions

I have a Linux host running Apache and a Windows host running IIS. I
On one Linux Server running Apache and PHP 5, we have multiple Virtual Hosts
I have Apache/SVN running on Windows Server 2003 with authentication via LDAP/Active Directory and
I have a linux server running ubuntu 10.10 maverick with apache and php installed,
I have a Linux Machine. Apache server is running and I need to deploy
I have my Apache http server running on localhost:80 and restlet server on localhost:8182,
I have Apache 2 running on a VPS server (running Debian). I recently changed
I have Apache running on a public-facing Debian server, and am a bit worried
I have a server running Gentoo 2.6.12 r6 and I want to run Apache
I'm running an Apache server (v2.2.10) with mod_python, Python 2.5 and Django. I have

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.