Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Viewing locally-served pages from the outside, while *inside*!

by rjimlad (Acolyte)
on Sep 29, 2002 at 14:35 UTC ( [id://201547]=note: print w/replies, xml ) Need Help??


in reply to Viewing locally-served pages from the outside, while *inside*!

There are actually a bunch of similar tricks you can do in apache to persuade it to always run a particular script for any requests, perhaps the most sensible of which is to use mod_rewrite to rewrite everything to your script (and thus log everything as 200s not 404s).

However if you really want to tell it to always run that script, you should also be able to do so in an .htaccess file this way:

Action my-mirror /mirror/mirror.cgi SetHandler my-mirror

...and have another .htaccess file in /mirror/ saying:

SetHandler cgi-script

...or mod_perl as appropriate. There may be a shorter way, but I'm not in a position to test it right now.

(Edited to fix (english) grammar. Oops)

(Edited to remove inintentionally humourous english link)

Replies are listed 'Best First'.
Re: Re: Viewing locally-served pages from the outside, while *inside*!
by Phaysis (Pilgrim) on Sep 29, 2002 at 20:53 UTC
    Hey, thanks for the tip. ++! I was hoping to figure out how to not make all those 404's appear in my logs.

    mod_rewrite...Hmm. I've heard of it, but haven't done that much research into it. I'm reading up on it now, and I think I'm starting to like it. Not completely understanding it, but I like it.

    Cheers!

    -Shawn / (Ph) Phaysis
    If idle hands are the tools of the devil, are idol tools the hands of god?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://201547]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-04-24 03:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found