Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Warning! This post is off topic and may offend you if you are under the belief that all posts must cover Perl. I am not responsible for any distress caused by reading beyond the disclaimer of this post.

I am primarily a programmer. I am lucky that I get paid to write perl. I am not so lucky that I have to do some oddball system adminstration work every once in a while. This is about the oddball system administration work with Apache that I am trying to do right now with mod_rewrite.

I currently have a client that has two web servers, A and B. A is running IIS and will be known as www.example.com. B will be accessed through redirection on A if the server gets a request for www.example.com/webapp and A will return www.webapp.example.com as the new location on the browser.

My task is to avoid the location change. This is a decree from the marketroids on high. :) In an attempt to do this, I initially employed mod_rewrite and made a ruleset that came close to my desired output. There was a sole issue, I did in fact create an infinite loop between the web servers.

I am presuming that since B, running linux/apache, is the final destination, it will be in charge of creating the final location bar text. But I can't figure out how to stop mod_rewrite from preparsing the rules and the subsequent redirection back to A. I know that there are some sysadmins hanging out around these parts, so I figured that perhaps I can make use of your black magic, in the hopes that someday you may have a question that I can answer in return.

I now return you to your regularly expressed perl questions.

ALL HAIL BRAK!!!


In reply to (OT) Apache Server issue by PsychoSpunk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2024-04-25 06:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found