Re: Possible Problem With Apache

From: Emma Jukie (kidjue_at_yahoo.co.uk)
Date: 02/19/05

  • Next message: Emma Jukie: "Re: Possible Problem With Apache"
    Date: Sat, 19 Feb 2005 13:50:53 +0000 (GMT)
    To: Odhiambo Washington <wash@wananchi.com>
    
    

    My partial httpd.conf file:

    # DocumentRoot: The directory out of which you will
    serve your
    # documents. By default, all requests are taken from
    this directory, but
    # symbolic links and aliases may be used to point to
    other locations.
    #
    DocumentRoot "/usr/local/www/cgi-bin"

    #
    # Each directory to which Apache has access, can be
    configured with respect
    # to which services and features are allowed and/or
    disabled in that
    # directory (and its subdirectories).
    #
    # First, we configure the "default" to be a very
    restrictive set of
    # permissions.
    #
    <Directory "/usr/local/www/cgi-perl">
            AllowOverride None
            Options None
            Order allow,deny
            Allow from all
            AuthName "Restricted Files"
            AuthType Basic
            AuthUserFile /usr/local/etc/httpd/users
            require valid-user
    </Directory>

    Also;

     Alias /cgi-perl/ /usr/local/www/cgi-perl/
        <Location /cgi-perl>
            SetHandler perl-script
            PerlHandler Apache::Registry
            PerlSendHeader on
            Options ExecCGI
        </Location>

        <Location /perl-status>
            SetHandler perl-script
            PerlHandler Apache::Status
            order deny,allow
            deny from all
            allow from 172.16.0.175
        </Location>
        #
        # ScriptAlias: This controls which directories
    contain server scripts.
        # ScriptAliases are essentially the same as
    Aliases, except that
        # documents in the realname directory are treated
    as applications and
        # run by the server when requested rather than as
    documents sent to the client.
        # The same rules about trailing "/" apply to
    ScriptAlias directives as to
        # Alias.
        #
        # ScriptAlias /cgi-bin/ "/usr/local/www/cgi-bin/"

        #
        # "/usr/local/www/cgi-bin" should be changed to
    whatever your ScriptAliased
        # CGI directory exists, if you have that
    configured.
        #
        <Directory "/usr/local/www/cgi-bin">
            AllowOverride None
            Options None
            Order allow,deny
            Allow from all
        </Directory>

    </IfModule>
    # End of aliases.

    The perl files that get executed when the GUI comes up
    are located under:
    /usr/local/www/cgi-perl/

    Hope this adds a little more insight!

    Thanks,
    Emma.

     --- Odhiambo Washington <wash@wananchi.com> wrote:
    > * Emma Jukie <kidjue@yahoo.co.uk> [20050210 16:55]:
    > wrote:
    > > What do you mean when you write, "that virtualhost
    > > error log?"
    >
    > Show us your apache configuration, especially the
    > part that deals
    > with that script you are using. For completeness,
    > show the whole
    > configuration.
    >
    >
    > -Wash
    >
    > http://www.netmeister.org/news/learn2quote.html
    >
    > --
    >
    +======================================================================+
    > |\ _,,,---,,_ | Odhiambo Washington
    > <wash@wananchi.com>
    > Zzz /,`.-'`' -. ;-;;,_ | Wananchi Online Ltd.
    > www.wananchi.com
    > |,4- ) )-,_. ,\ ( `'-'| Tel: +254 20 313985-9
    > +254 20 313922
    > '---''(_/--' `-'\_) | GSM: +254 722 743223
    > +254 733 744121
    >
    +======================================================================+
    > You've been leading a dog's life. Stay off the
    > furniture.
    >

            
            
                    
    ___________________________________________________________
    ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com
    _______________________________________________
    freebsd-net@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-net
    To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"


  • Next message: Emma Jukie: "Re: Possible Problem With Apache"

    Relevant Pages

    • Re: Possible Problem With Apache
      ... all requests are taken from ... # symbolic links and aliases may be used to point to ... ScriptAlias directives as to ... > Show us your apache configuration, ...
      (freebsd-isp)
    • RE: Apache2 on Debian "ScriptAlias" Directives
      ... Here is their suggested lines of configuration. ... Apache2 on Debian "ScriptAlias" Directives ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)
    • CGI Script Source Code Disclosure Vulnerability in Apache for Windows
      ... The vulnerability has been verified on Apache 2.2.2 running on Microsoft Windows XP, Version 2002, Service Pack 2. ... The 'ScriptAlias' directive controls which directory contains server scripts. ... But a similar configuration isn't safe in Windows. ...
      (Bugtraq)