httpd-users mailing list archives

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

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

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

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).

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:
>#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/
>Timeout 300
>KeepAlive On
>MaxKeepAliveRequests 100
>KeepAliveTimeout 15
><IfModule mpm_winnt.c>
>ThreadsPerChild 250
>MaxRequestsPerChild  0
>Listen 80
>LoadModule access_module modules/
>LoadModule actions_module modules/
>LoadModule alias_module modules/
>LoadModule asis_module modules/
>LoadModule auth_module modules/
>#LoadModule auth_anon_module modules/
>#LoadModule auth_dbm_module modules/
>#LoadModule auth_digest_module
>LoadModule autoindex_module modules/
>#LoadModule cern_meta_module modules/
>LoadModule cgi_module modules/
>#LoadModule dav_module modules/
>#LoadModule dav_fs_module modules/
>LoadModule dir_module modules/
>LoadModule env_module modules/
>#LoadModule expires_module modules/
>#LoadModule file_cache_module
>#LoadModule headers_module modules/
>LoadModule imap_module modules/
>LoadModule include_module modules/
>#LoadModule info_module modules/
>LoadModule isapi_module modules/
>LoadModule log_config_module modules/
>LoadModule mime_module modules/
>#LoadModule mime_magic_module
>#LoadModule proxy_module modules/
>#LoadModule proxy_connect_module
>#LoadModule proxy_http_module
>#LoadModule proxy_ftp_module modules/
>LoadModule negotiation_module
>#LoadModule rewrite_module modules/
>LoadModule setenvif_module modules/
>#LoadModule speling_module modules/
>#LoadModule status_module modules/
>#LoadModule unique_id_module modules/
>LoadModule userdir_module modules/
>#LoadModule usertrack_module modules/
>#LoadModule vhost_alias_module
>#LoadModule ssl_module modules/
>LoadModule rewrite_module modules/
>#ExtendedStatus On
>ServerName library:80
>UseCanonicalName Off
>DocumentRoot "C:/Program Files/Apache
><Directory />
>    Options FollowSymLinks
>    AllowOverride All
><Directory "C:/Program Files/Apache
>    Options Indexes FollowSymLinks ExecCGI
>    AllowOverride All
>    Order allow,deny
>    Allow from all
>UserDir "My Documents/My Website"
>#<Directory "C:/Documents and Settings/*/My
>Documents/My Website">
>#    AllowOverride FileInfo AuthConfig Limit
>#    Options MultiViews Indexes SymLinksIfOwnerMatch
>#        Order allow,deny
>#        Allow from all
>#    </Limit>
>#        Order deny,allow
>#        Deny from all
>#    </LimitExcept>
>DirectoryIndex index.htm index.html.var index.php
>AccessFileName .htaccess
><Files ~ "^\.ht">
>    Order allow,deny
>    Deny from all
>TypesConfig conf/mime.types
>DefaultType text/plain
><IfModule mod_mime_magic.c>
>    MIMEMagicFile conf/magic
>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
><Directory "C:/Program Files/Apache
>    Options Indexes MultiViews
>    AllowOverride None
>    Order allow,deny
>    Allow from all
>Alias /manual "C:/Program Files/Apache
><Directory "C:/Program Files/Apache
>    Options Indexes FollowSymLinks MultiViews
>    AddOutputFilter Includes html
>    AllowOverride None
>    Order allow,deny
>    Allow from all
>ScriptAlias /cgi-bin/ "C:/Program Files/Apache
><Directory "C:/Program Files/Apache
>Options ExecCGI
>AddHandler cgi-script cgi pl
>AllowOverride None
>Order allow,deny
>Allow from all
>ScriptAlias /gsdl/cgi-bin "c:/Program
>    <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
>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
>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)
># but works on a fairly wide range of browsers. Note
># capitalization actually matters (it should not, but
># does for some browsers).
># See
># 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
>#    ErrorDocument 401
>#    ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
>#    ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
>#    ErrorDocument 405
>#    ErrorDocument 408
>#    ErrorDocument 410 /error/HTTP_GONE.html.var
>#    ErrorDocument 411
>#    ErrorDocument 412
>#    ErrorDocument 413
>#    ErrorDocument 414
>#    ErrorDocument 415
>#    ErrorDocument 500
>#    ErrorDocument 501
>#    ErrorDocument 502
>#    ErrorDocument 503
>#    ErrorDocument 506
>BrowserMatch "Mozilla/2" nokeepalive
>BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-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 /server-info>
>#    SetHandler server-info
>#    Order deny,allow
>#    Deny from all
>#    Allow from .dishnet
>#<IfModule mod_proxy.c>
>#ProxyRequests On
>#<Proxy *>
>#    Order deny,allow
>#    Deny from all
>#    Allow from
>#ProxyVia On
>#CacheRoot "C:/Program Files/Apache
>#CacheSize 5
>#CacheGcInterval 4
>#CacheMaxExpire 24
>#CacheLastModifiedFactor 0.1
>#CacheDefaultExpire 1
># End of proxy directives.
><IfModule mod_ssl.c>
>    Include conf/ssl.conf
>#NameVirtualHost *
>#<VirtualHost *>
>#    ServerAdmin
>#    DocumentRoot /www/docs/
>#    ServerName
>#    ErrorLog logs/
>#    CustomLog logs/
>Do you Yahoo!?
>Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
>The official User-To-User support forum of the Apache HTTP 
>Server Project.
>See <URL:> for more info.
>To unsubscribe, e-mail:
>   "   from the digest:
>For additional commands, e-mail:

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:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message