Find the answer to your Linux question:
Results 1 to 3 of 3
hey there, i need to be able to server scripts from the web_root folder of my debian server with apache. Can this be done ? i am behind a router ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2005
    Posts
    15

    can i make the web_root behave like a cgi-bin?


    hey there,
    i need to be able to server scripts from the web_root folder of my debian server with apache. Can this be done ? i am behind a router at work that messes with my ability to get images to the outside from a domain path
    img src = "www.mydomain.com/images/image.jpg" will not work here
    but src = 'image.jpg' will work

    so i need scripts to run from web_root. any reason not to do this? how would i ? script alias? thanks.

  2. #2
    Linux Engineer Giro's Avatar
    Join Date
    Jul 2003
    Location
    England
    Posts
    1,219
    I found this doc with a quick Google search (keywords: apache scriptalias) seems like what you want but i would not use .htaccess unless you cant access the httpd.conf file. Put it inside a <Directory></Directory> directive.

  3. #3
    Just Joined!
    Join Date
    Aug 2005
    Posts
    15
    Hey, thats what i had to do,
    got php scripts to work from web_root,
    but not python
    thats ok though.
    if i can do it in php i would rather do it that way anyway.
    thanks

  4. $spacer_open
    $spacer_close

Posting Permissions

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