Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

SuSE

  • 07-09-2001 4:36pm
    #1
    Closed Accounts Posts: 24


    running SuSE 7.1 with apache server...can view tilda users but the cgi-bin dir is not viewable. However the cgi-bin works under www.yourname.com/cgi-bin/test.cgi but not under /~test/cgi-bin/test.cgi - comes back with file not found

    any suggestions...all dir are chmod correctly and so are the cgi files ?


Comments

  • Registered Users, Registered Users 2 Posts: 1,862 ✭✭✭flamegrill


    thats an easy one mate.
    <Directory /home/*/public_html>
        AllowOverride FileInfo AuthConfig Limit
        Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
        <Limit GET POST OPTIONS PROPFIND>
            Order allow,deny
            Allow from all
        </Limit>
        <LimitExcept GET POST OPTIONS PROPFIND>
            Order deny,allow
            Deny from all
        </LimitExcept>
    </Directory>
    

    thers an example of the typicial setup for apache and users directorys. now correct me if im wrong but i dont see any cgi-bin record there and usually you wont ever see one there. its a bad idea letting every user to execute there own cgi's.

    what ya could do, if you really wanted was setup each user as a vhost.

    username.domain.tld

    <VirtualHost 192.168.0.3>
    ServerAdmin admin@domain.tld
    ServerName username.domain.tld
    DocumentRoot /home/username/webdir
    ScriptAlias /cgi-bin/ /home/username/webdir/cgi-bin/
    </VirtualHost>

    thats easy to do.




Advertisement