Is this possible

Discussion in 'Apache' started by JoeSaddigh, Jan 26, 2010.

  1. #1
    Hi,

    I have posted a couple of questions and am not getting much help and am not sure if im doing something wrong.

    Please could somebody tell me if this is possible so I know that I am not wasting my time.

    I want to redirect pages which are served up by apache to my cgi application which is actually a .exe and pass the url of the requested page as a paramater.

    Is this possible using mod_rewrite or mod_alias.

    I have managed to get it to redirect using mod_alias to the same page in another directory. However I want to specify the cgi (in my case inforeplace.exe) with the url passed in so that I can read the file and replace various keywords before sending the output to the screen.

    Should I use mod_alias for this or mod_rewrite?

    Please any advice would be great!

    Thanks
     
    JoeSaddigh, Jan 26, 2010 IP
  2. mascix

    mascix Active Member

    Messages:
    64
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    93
    #2
    mascix, Jan 27, 2010 IP
  3. JoeSaddigh

    JoeSaddigh Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I see..

    I eventually got it to work. The problem was that I didn't include the cgi module because I was using a cut down version of apache. Such a headache because the code was correct straight away!!

    Thanks for your comment I was beginning to think people couldn't see my post!
     
    JoeSaddigh, Jan 28, 2010 IP