httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boyle Owen" <Owen.Bo...@swx.com>
Subject RE: [users@httpd] Can't Access CGI-BIN
Date Thu, 27 Mar 2003 08:04:07 GMT
>-----Original Message-----
>From: Jack Eapen [mailto:jackachachan@yahoo.com]
>
>hi,
>  when i'm trying to access my page
>http://library/cgi-bin/ it says that 
>Forbidden
>You don't have permission to access /cgi-bin/ on this
>server.
>

Is this what you type into the browser: http://library/cgi-bin/ ? What
are you expecting to see?

You have defined this as a CGI directory so you have told apache that it
is a place where you will keep executable programs. Therefore you cannot
get a directory listing (if that's what you were expecting) since the
details of your CGI environment have to be protected for security
reasons.

What happens if you try http://library/cgi-bin/myprog where "myprog" is
the name of an executable program in "C:/Program Files/Apache
Group/Apache2/cgi-bin/"?

The only way that the URL at the top would work would be if you had a
program in the cgi-bin directory which was defined by a DirectoryIndex
directive as a default document, e.g.

	DirectoryIndex myprog

then http://library/cgi-bin/ would return http://library/cgi-bin/myprog.

(I notice you have a DirectoryIndex but it's not clear if, for example,
index.php is in the cgi-bin dir).

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 


>I'm using Apache 2.0.44 on a Windows 98 machine.
>Can anybody kindly help me?
>here's my httpd.conf file:
>
>Jack
>
>
>#ScriptAlias /php/ "c:/php/"
>#AddType application/x-httpd-php .php
>#Action application/x-httpd-php "/php/php.exe"
>LoadModule php4_module c:/php/sapi/php4apache2.dll
>AddType application/x-httpd-php .php
>
>ServerRoot "C:/Program Files/Apache Group/Apache2"
>
>#ScoreBoardFile logs/apache_runtime_status
>
>PidFile logs/httpd.pid
>
>Timeout 300
>
>KeepAlive On
>
>MaxKeepAliveRequests 100
>
>KeepAliveTimeout 15
>
><IfModule mpm_winnt.c>
>ThreadsPerChild 250
>MaxRequestsPerChild  0
></IfModule>
>
>#Listen 12.34.56.78:80
>Listen 80
>
>
>LoadModule access_module modules/mod_access.so
>LoadModule actions_module modules/mod_actions.so
>LoadModule alias_module modules/mod_alias.so
>LoadModule asis_module modules/mod_asis.so
>LoadModule auth_module modules/mod_auth.so
>#LoadModule auth_anon_module modules/mod_auth_anon.so
>#LoadModule auth_dbm_module modules/mod_auth_dbm.so
>#LoadModule auth_digest_module
>modules/mod_auth_digest.so
>LoadModule autoindex_module modules/mod_autoindex.so
>#LoadModule cern_meta_module modules/mod_cern_meta.so
>LoadModule cgi_module modules/mod_cgi.so
>#LoadModule dav_module modules/mod_dav.so
>#LoadModule dav_fs_module modules/mod_dav_fs.so
>LoadModule dir_module modules/mod_dir.so
>LoadModule env_module modules/mod_env.so
>#LoadModule expires_module modules/mod_expires.so
>#LoadModule file_cache_module
>modules/mod_file_cache.so
>#LoadModule headers_module modules/mod_headers.so
>LoadModule imap_module modules/mod_imap.so
>LoadModule include_module modules/mod_include.so
>#LoadModule info_module modules/mod_info.so
>LoadModule isapi_module modules/mod_isapi.so
>LoadModule log_config_module modules/mod_log_config.so
>LoadModule mime_module modules/mod_mime.so
>#LoadModule mime_magic_module
>modules/mod_mime_magic.so
>#LoadModule proxy_module modules/mod_proxy.so
>#LoadModule proxy_connect_module
>modules/mod_proxy_connect.so
>#LoadModule proxy_http_module
>modules/mod_proxy_http.so
>#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
>LoadModule negotiation_module
>modules/mod_negotiation.so
>#LoadModule rewrite_module modules/mod_rewrite.so
>LoadModule setenvif_module modules/mod_setenvif.so
>#LoadModule speling_module modules/mod_speling.so
>#LoadModule status_module modules/mod_status.so
>#LoadModule unique_id_module modules/mod_unique_id.so
>LoadModule userdir_module modules/mod_userdir.so
>#LoadModule usertrack_module modules/mod_usertrack.so
>#LoadModule vhost_alias_module
>modules/mod_vhost_alias.so
>#LoadModule ssl_module modules/mod_ssl.so
>LoadModule rewrite_module modules/mod_rewrite.so
>
>#ExtendedStatus On
>
>
>ServerAdmin admin@library.com
>
>
>ServerName library:80
>
>UseCanonicalName Off
>
>DocumentRoot "C:/Program Files/Apache
>Group/Apache2/htdocs/openbiblio"
>
><Directory />
>    Options FollowSymLinks
>    AllowOverride All
></Directory>
>
><Directory "C:/Program Files/Apache
>Group/Apache2/htdocs/openbiblio">
>
>
>    Options Indexes FollowSymLinks ExecCGI
>    AllowOverride All
>    Order allow,deny
>    Allow from all
></Directory>
>
>UserDir "My Documents/My Website"
>
>#<Directory "C:/Documents and Settings/*/My
>Documents/My Website">
>#    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>
>
>DirectoryIndex index.htm index.html.var index.php
>
>AccessFileName .htaccess
>
><Files ~ "^\.ht">
>    Order allow,deny
>    Deny from all
></Files>
>
>TypesConfig conf/mime.types
>
>DefaultType text/plain
>
><IfModule mod_mime_magic.c>
>    MIMEMagicFile conf/magic
></IfModule>
>
>HostnameLookups Off
>
>#EnableMMAP off
>
>#EnableSendfile off
>
>ErrorLog logs/error.log
>
>LogLevel warn
>
>LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
>\"%{User-Agent}i\"" combined
>LogFormat "%h %l %u %t \"%r\" %>s %b" common
>LogFormat "%{Referer}i -> %U" referer
>LogFormat "%{User-agent}i" agent
>
>#LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
>\"%{User-Agent}i\" %I %O" combinedio
>
>CustomLog logs/access.log common
>
>#CustomLog logs/referer.log referer
>#CustomLog logs/agent.log agent
>
>#CustomLog logs/access.log combined
>
>ServerTokens Full
>
>ServerSignature On
>
>Alias /icons/ "C:/Program Files/Apache
>Group/Apache2/icons/"
>
><Directory "C:/Program Files/Apache
>Group/Apache2/icons">
>    Options Indexes MultiViews
>    AllowOverride None
>    Order allow,deny
>    Allow from all
></Directory>
>
>Alias /manual "C:/Program Files/Apache
>Group/Apache2/htdocs/openbiblio/manual"
>
><Directory "C:/Program Files/Apache
>Group/Apache2/htdocs/openbiblio/manual">
>    Options Indexes FollowSymLinks MultiViews
>IncludesNoExec
>    AddOutputFilter Includes html
>    AllowOverride None
>    Order allow,deny
>    Allow from all
></Directory>
>
>
>ScriptAlias /cgi-bin/ "C:/Program Files/Apache
>Group/Apache2/cgi-bin/"
><Directory "C:/Program Files/Apache
>Group/Apache2/cgi-bin">
>Options ExecCGI
>AddHandler cgi-script cgi pl
>AllowOverride None
>Order allow,deny
>Allow from all
></Directory>
>
>ScriptAlias /gsdl/cgi-bin "c:/Program
>Files/gsdl/cgi-bin/"
>    <Directory "c:/Program Files/gsdl/cgi-bin">
>       Options ExecCGI
>       AllowOverride None
>    </Directory>
> 
>  Alias /gsdl "c:/Program Files/gsdl/"
>    <Directory "c:/Program Files/gsdl">
>       Options Indexes MultiViews FollowSymLinks
>       AllowOverride None
>       Order allow,deny
>       Allow from all
>    </Directory>
>
>
># Redirect permanent /foo http://www.example.com/bar
>
>IndexOptions FancyIndexing VersionSort
>
>AddIconByEncoding (CMP,/icons/compressed.gif)
>x-compress x-gzip
>
>AddIconByType (TXT,/icons/text.gif) text/*
>AddIconByType (IMG,/icons/image2.gif) image/*
>AddIconByType (SND,/icons/sound2.gif) audio/*
>AddIconByType (VID,/icons/movie.gif) video/*
>
>AddIcon /icons/binary.gif .bin .exe
>AddIcon /icons/binhex.gif .hqx
>AddIcon /icons/tar.gif .tar
>AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
>AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
>AddIcon /icons/a.gif .ps .ai .eps
>AddIcon /icons/layout.gif .html .shtml .htm .pdf
>AddIcon /icons/text.gif .txt
>AddIcon /icons/c.gif .c
>AddIcon /icons/p.gif .pl .py
>AddIcon /icons/f.gif .for
>AddIcon /icons/dvi.gif .dvi
>AddIcon /icons/uuencoded.gif .uu
>AddIcon /icons/script.gif .conf .sh .shar .csh .ksh
>.tcl
>AddIcon /icons/tex.gif .tex
>AddIcon /icons/bomb.gif core
>
>AddIcon /icons/back.gif ..
>AddIcon /icons/hand.right.gif README
>AddIcon /icons/folder.gif ^^DIRECTORY^^
>AddIcon /icons/blank.gif ^^BLANKICON^^
>
>DefaultIcon /icons/unknown.gif
>
>#AddDescription "GZIP compressed document" .gz
>#AddDescription "tar archive" .tar
>#AddDescription "GZIP compressed tar archive" .tgz
>
>ReadmeName README.html
>HeaderName HEADER.html
>
>IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
>
>AddEncoding x-compress Z
>AddEncoding x-gzip gz tgz
>
>AddLanguage da .dk
>AddLanguage nl .nl
>AddLanguage en .en
>AddLanguage et .et
>AddLanguage fr .fr
>AddLanguage de .de
>AddLanguage he .he
>AddLanguage el .el
>AddLanguage it .it
>AddLanguage ja .ja
>AddLanguage pl .po
>AddLanguage ko .ko
>AddLanguage pt .pt
>AddLanguage nn .nn
>AddLanguage no .no
>AddLanguage pt-br .pt-br
>AddLanguage ltz .ltz
>AddLanguage ca .ca
>AddLanguage es .es
>AddLanguage sv .se
>AddLanguage cz .cz
>AddLanguage ru .ru
>AddLanguage tw .tw
>AddLanguage zh-tw .tw
>AddLanguage hr .hr
>
>LanguagePriority en da nl et fr de el it ja ko no pl
>pt pt-br ltz ca es sv tw
>
>ForceLanguagePriority Prefer Fallback
>
>AddDefaultCharset ISO-8859-1
>
>AddCharset ISO-8859-1  .iso8859-1 .latin1
>AddCharset ISO-8859-2  .iso8859-2 .latin2 .cen
>AddCharset ISO-8859-3  .iso8859-3 .latin3
>AddCharset ISO-8859-4  .iso8859-4 .latin4
>AddCharset ISO-8859-5  .iso8859-5 .latin5 .cyr .iso-ru
>AddCharset ISO-8859-6  .iso8859-6 .latin6 .arb
>AddCharset ISO-8859-7  .iso8859-7 .latin7 .grk
>AddCharset ISO-8859-8  .iso8859-8 .latin8 .heb
>AddCharset ISO-8859-9  .iso8859-9 .latin9 .trk
>AddCharset ISO-2022-JP .iso2022-jp .jis
>AddCharset ISO-2022-KR .iso2022-kr .kis
>AddCharset ISO-2022-CN .iso2022-cn .cis
>AddCharset Big5        .Big5       .big5
># For russian, more than one charset is used (depends
>on client, mostly):
>AddCharset WINDOWS-1251 .cp-1251   .win-1251
>AddCharset CP866       .cp866
>AddCharset KOI8-r      .koi8-r .koi8-ru
>AddCharset KOI8-ru     .koi8-uk .ua
>AddCharset ISO-10646-UCS-2 .ucs2
>AddCharset ISO-10646-UCS-4 .ucs4
>AddCharset UTF-8       .utf8
>
># The set below does not map to a specific (iso)
>standard
># but works on a fairly wide range of browsers. Note
>that
># capitalization actually matters (it should not, but
>it
># does for some browsers).
>#
># See
>ftp://ftp.isi.edu/in-notes/iana/assignments/character-sets
># for a list of sorts. But browsers support few.
>#
>AddCharset GB2312      .gb2312 .gb 
>AddCharset utf-7       .utf7
>AddCharset utf-8       .utf8
>AddCharset big5        .big5 .b5
>AddCharset EUC-TW      .euc-tw
>AddCharset EUC-JP      .euc-jp
>AddCharset EUC-KR      .euc-kr
>AddCharset shift_jis   .sjis
>
>AddType application/x-tar .tgz
>AddType image/x-icon .ico
>
>AddHandler cgi-script .cgi
>
>#AddHandler send-as-is asis
>
>#AddHandler imap-file map
>
>AddHandler type-map var
>
>#AddType text/html .shtml
>#AddOutputFilter INCLUDES .shtml
>
>#   Alias /error/include/ "/your/include/path/"
>
>#    Alias /error/ "@exp_errordir@/"
>#
>#    <Directory "@exp_errordir@">
>#        AllowOverride None
>#        Options IncludesNoExec
>#        AddOutputFilter Includes html
>#        AddHandler type-map var
>#        Order allow,deny
>#        Allow from all
>#        LanguagePriority en de es fr it nl sv
>#        ForceLanguagePriority Prefer Fallback
>#    </Directory>
>#
>#    ErrorDocument 400
>/error/HTTP_BAD_REQUEST.html.var
>#    ErrorDocument 401
>/error/HTTP_UNAUTHORIZED.html.var
>#    ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
>#    ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
>#    ErrorDocument 405
>/error/HTTP_METHOD_NOT_ALLOWED.html.var
>#    ErrorDocument 408
>/error/HTTP_REQUEST_TIME_OUT.html.var
>#    ErrorDocument 410 /error/HTTP_GONE.html.var
>#    ErrorDocument 411
>/error/HTTP_LENGTH_REQUIRED.html.var
>#    ErrorDocument 412
>/error/HTTP_PRECONDITION_FAILED.html.var
>#    ErrorDocument 413
>/error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
>#    ErrorDocument 414
>/error/HTTP_REQUEST_URI_TOO_LARGE.html.var
>#    ErrorDocument 415
>/error/HTTP_SERVICE_UNAVAILABLE.html.var
>#    ErrorDocument 500
>/error/HTTP_INTERNAL_SERVER_ERROR.html.var
>#    ErrorDocument 501
>/error/HTTP_NOT_IMPLEMENTED.html.var
>#    ErrorDocument 502
>/error/HTTP_BAD_GATEWAY.html.var
>#    ErrorDocument 503
>/error/HTTP_SERVICE_UNAVAILABLE.html.var
>#    ErrorDocument 506
>/error/HTTP_VARIANT_ALSO_VARIES.html.var
>
>BrowserMatch "Mozilla/2" nokeepalive
>BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0
>force-response-1.0
>BrowserMatch "RealPlayer 4\.0" force-response-1.0
>BrowserMatch "Java/1\.0" force-response-1.0
>BrowserMatch "JDK/1\.0" force-response-1.0
>
>BrowserMatch "Microsoft Data Access Internet
>Publishing Provider" redirect-carefully
>BrowserMatch "^WebDrive" redirect-carefully
>BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
>BrowserMatch "^gnome-vfs" redirect-carefully
>
>#<Location /server-status>
>#    SetHandler server-status
>#    Order deny,allow
>#    Deny from all
>#    Allow from .dishnet
>#</Location>
>
>#<Location /server-info>
>#    SetHandler server-info
>#    Order deny,allow
>#    Deny from all
>#    Allow from .dishnet
>#</Location>
>
>#<IfModule mod_proxy.c>
>#ProxyRequests On
>#<Proxy *>
>#    Order deny,allow
>#    Deny from all
>#    Allow from .example.com
>#</Proxy>
>
>#ProxyVia On
>
>#CacheRoot "C:/Program Files/Apache
>Group/Apache2/proxy"
>#CacheSize 5
>#CacheGcInterval 4
>#CacheMaxExpire 24
>#CacheLastModifiedFactor 0.1
>#CacheDefaultExpire 1
>#NoCache a-domain.com another-domain.edu
>joes.garage-sale.com
>
>#</IfModule>
># End of proxy directives.
>
><IfModule mod_ssl.c>
>    Include conf/ssl.conf
></IfModule>
>
>
>#NameVirtualHost *
>
>#<VirtualHost *>
>#    ServerAdmin webmaster@dummy-host.example.com
>#    DocumentRoot /www/docs/dummy-host.example.com
>#    ServerName dummy-host.example.com
>#    ErrorLog logs/dummy-host.example.com-error_log
>#    CustomLog logs/dummy-host.example.com-access_log
>common
>#</VirtualHost>
>
>
>__________________________________________________
>Do you Yahoo!?
>Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
>http://platinum.yahoo.com
>
>---------------------------------------------------------------------
>The official User-To-User support forum of the Apache HTTP 
>Server Project.
>See <URL:http://httpd.apache.org/userslist.html> for more info.
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
>
>

This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please notify the sender urgently
and then immediately delete the message and any copies of it from your
system. Please also immediately destroy any hardcopies of the message.
You must not, directly or indirectly, use, disclose, distribute, print,
or copy any part of this message if you are not the intended recipient.
The sender's company reserves the right to monitor all e-mail
communications through their networks. Any views expressed in this
message are those of the individual sender, except where the message
states otherwise and the sender is authorised to state them to be the
views of the sender's company. 



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message