The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

Apache geek needed... by perpeduumimmobl2004-04-05 13:41:13
  You may take a look ... by chrisP2006-11-19 12:55:59
    Just had a closer look ... by chrisP 2004-04-05 13:58:26
Directly from the first link:

<quote>
From Static to Dynamic

Description:
How can we transform a static page foo.html into a dynamic variant foo.cgi in a seamless way, i.e. without notice by the browser/user.

Solution:
We just rewrite the URL to the CGI-script and force the correct MIME-type so it gets really run as a CGI-script. This way a request to /~quux/foo.html internally leads to the invokation of /~quux/foo.cgi.

RewriteEngine on
RewriteBase /~quux/
RewriteRule ^foo\.html$ foo.cgi [T=application/x-httpd-cgi]

</quote>

That should do the trick.
[ Reply ]
      You sure? by BrainBug2004-04-05 14:05:26
        Oopsie... Right. by perpeduumimmobl2004-04-05 14:12:04
          Addition: by perpeduumimmobl2004-04-05 14:17:08
            This is definately doable. by chrisP2004-04-05 14:26:10
              I'm not quite sure about that already. by perpeduumimmobl2004-04-05 14:39:07
        <Deleted><Deleted>2004-04-05 16:12:16
          Urgh ... MODS ... by chrisP2004-04-05 14:42:13
          Moderate for email address inclusion at request (n (n/t) by Kickstart2004-04-05 16:12:37

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)