Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jan 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy need help with config

    I have a cgi program that is in /home/whatever/bin/ and i want to run it from any website on the same server so that there is just one set of files and not one for each website

    so instead of www.a.com/cgi-bin/a.cgi or www.b.com/cgi-bin/a.cgi i want to be able to do www.a.com/bin/a.cgi www.b.com/bin/a.cgi

    I have changed this in virtual host from

    ScriptAlias /cgi-bin/ /home/a/public_html/cgi-bin/

    to


    ScriptAlias /cgi-bin/ /home/whatever/bin

    but running www.a.com/bin/a.cgi gives me file not found


    we use to be able to do it till the hosting company upgraded apache and now it does not work. they didnt backup the config files and its been years so i dont remeber what files and commands to change in the httpd and the srm.conf

    help is appreciated

    Thanks

  • #2
    Senior Coder tomws's Avatar
    Join Date
    Nov 2007
    Location
    Arkansas
    Posts
    2,644
    Thanks
    29
    Thanked 330 Times in 326 Posts
    Check out the Apache documentation for cgi. It looks like you just need to modify your script-alias line or else change the path you're trying to use - compare "cgi-bin" and "bin".
    Are you a Help Vampire?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •