Results 1 to 2 of 2

Thread: Need Apache Help

  1. #1
    Senior Member
    Join Date
    Oct 2001
    Posts
    107

    Need Apache Help

    I'm trying to set up apache and I need some help.
    My DirectoryRoot is /var/www/html and for the cgi it is /var/www/cgi-bin with a ScriptAlias /cgi-bin/

    I want to run scripts from my local directory

    /home/owen/cgi-bin

    and access them through

    /home/owen/public_html

    The computer is not connected to the internet, I am just setting it up so I can learn php.

    I can access the html scripts in /home/owen/public_html

    "http://localhost/~owen/test.html"

    test.html contains a form that needs processing by test.pl
    that is in /home/owen/cgi-bin.

    Is there a way to set up

    "http://localhost/cgi-bin/owen/test.pl" ?

    I greatly appreciate the help. Thank you!

  2. #2
    Jaded Network Admin nebulus200's Avatar
    Join Date
    Jun 2002
    Posts
    1,356
    The way that it would show up, if I remember right is:

    http://localhost/~owen/cgi-bin/test.pl

    Try that.

    You also need to remember to go to your httpd.conf and make sure that the options allows the execution of scripts in that directory and that it is allowed to override the default (which doesn't allow it). I think you are looking for the following: (I had to hack this out of my conf, (to hide my info obviously), you might need to play with it a little...)

    #
    <Directory /home/*/public_html>
    # AllowOverride FileInfo AuthConfig Limit
    Options Indexes ExecCGI
    <Limit GET POST OPTIONS PROPFIND>
    Order Deny,Allow
    Allow from 127.0.0.1
    Deny from all
    </Limit>
    <LimitExcept GET POST OPTIONS PROPFIND>
    Order deny,allow
    Deny from all
    </LimitExcept>
    </Directory>


    Nebulus
    There is only one constant, one universal, it is the only real truth: causality. Action. Reaction. Cause and effect...There is no escape from it, we are forever slaves to it. Our only hope, our only peace is to understand it, to understand the 'why'. 'Why' is what separates us from them, you from me. 'Why' is the only real social power, without it you are powerless.

    (Merovingian - Matrix Reloaded)

Posting Permissions

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