Gaurav Agarwal (
Sun, 5 Sep 1999 16:27:53 +0530

This is a multi-part message in MIME format.

Content-Type: text/plain;
Content-Transfer-Encoding: 7bit

This is in reference to the query i posted earlier on this mailing list.
After sufficient amount of fiddling with the httpd.conf file, i have come to
a point where on trying to execute a .cgi file in browser, i get the 403
Forbidden Error. I have tried my best, and also went thru the whole apache
manual, but to no avail.i am attaching the httpd.conf file herewith, and i
would appreciate if someone would help me out ...
I am sorry if the attachment took a bit longer to download, but that was the
only way out for me...
Thanks a lot in advance,

--- original message ---
>>I am using Apache under Red-Hat 6. it is configured
>>properly, and displays the .htm files
>>correctly, but when i try to run a .cgi executable,
>>it either shows the script source, ar if i
>>rename the script to .pl the browser gives the save-file-as window.
>>I read the Apache GAQ, and added
>>AddHandler cgi-script .cgi
>>and also the ExecCGI option, using the comanache editor (actually i even
edited the file by
>>haned, so i am sure i put it n the proper place.)
>>The script was chmodded as 775.
>>Thanks a lot,

Content-Type: application/octet-stream;
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;

# Configuration dumper for Comanche. It can be configured, so the .conf =
is human friendly=0A=
startservers 10=0A=
minspareservers 8=0A=
maxspareservers 20=0A=
keepalive off=0A=
MaxClients 150=0A=
maxrequestsperchild 100=0A=
pidfile /var/run/
Timeout 300=0A=
ScoreBoardFile /var/run/httpd.scoreboard=0A=
ServerRoot /etc/httpd=0A=
hostnamelookups on=0A=
serveradmin root@localhost=0A=
servername prayagonline=0A=
DocumentRoot /root/=0A=
user nobody=0A=
group nobody=0A=
Options ExecCgi Includes=0A=
LoadModule env_module modules/
LoadModule config_log_module modules/
LoadModule agent_log_module modules/
LoadModule referer_log_module modules/
LoadModule mime_module modules/
LoadModule negotiation_module modules/
LoadModule status_module modules/
LoadModule info_module modules/
LoadModule includes_module modules/
LoadModule autoindex_module modules/
LoadModule dir_module modules/
LoadModule cgi_module modules/
LoadModule asis_module modules/
LoadModule imap_module modules/
LoadModule action_module modules/
LoadModule userdir_module modules/
LoadModule proxy_module modules/
LoadModule alias_module modules/
LoadModule rewrite_module modules/
LoadModule access_module modules/
LoadModule auth_module modules/
LoadModule anon_auth_module modules/
LoadModule db_auth_module modules/
LoadModule digest_module modules/
LoadModule expires_module modules/
LoadModule headers_module modules/
LoadModule usertrack_module modules/
LoadModule setenvif_module modules/
AddModule mod_env.c=0A=
AddModule mod_log_config.c=0A=
AddModule mod_log_agent.c=0A=
AddModule mod_log_referer.c=0A=
AddModule mod_mime.c=0A=
AddModule mod_negotiation.c=0A=
AddModule mod_status.c=0A=
AddModule mod_info.c=0A=
AddModule mod_include.c=0A=
AddModule mod_autoindex.c=0A=
AddModule mod_dir.c=0A=
AddModule mod_cgi.c=0A=
AddModule mod_asis.c=0A=
AddModule mod_imap.c=0A=
AddModule mod_actions.c=0A=
AddModule mod_userdir.c=0A=
AddModule mod_proxy.c=0A=
AddModule mod_alias.c=0A=
AddModule mod_rewrite.c=0A=
AddModule mod_access.c=0A=
AddModule mod_auth.c=0A=
AddModule mod_auth_anon.c=0A=
AddModule mod_auth_db.c=0A=
AddModule mod_digest.c=0A=
AddModule mod_expires.c=0A=
AddModule mod_headers.c=0A=
AddModule mod_usertrack.c=0A=
AddModule mod_so.c=0A=
AddModule mod_setenvif.c=0A=
AddHandler cgi-script .cgi=0A=
loglevel debug=0A=
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" =
LogFormat "%h %l %u %t \"%r\" %>s %b" common=0A=
LogFormat "%{Referer}i -> %U" referer=0A=
LogFormat "%{User-agent}i" agent=0A=
CustomLog logs/access_log common=0A=
UseCanonicalName on=0A=
<Directory />=0A=
Options None=0A=
AllowOverride None=0A=
<Directory /home/httpd/html>=0A=
Options Indexes Includes FollowSymLinks=0A=
AllowOverride None=0A=
order allow,deny=0A=
allow from all=0A=
<Directory /home/httpd/cgi-bin>=0A=
AllowOverride None=0A=
Options ExecCGI=0A=
AddHandler cgi-script .pl=0A=
Alias /doc /usr/doc=0A=
<Directory /usr/doc>=0A=
order deny,allow=0A=
deny from all=0A=
allow from localhost=0A=
Options Indexes FollowSymLinks=0A=
DocumentRoot /home/httpd/html=0A=
UserDir public_html=0A=
DirectoryIndex index.html index.shtml index.cgi index.htm=0A=
FancyIndexing on=0A=
defaulticon /icons/unknown.gif=0A=
ReadmeName README=0A=
HeaderName HEADER=0A=
IndexIgnore .??* *~ *# HEADER* README* RCS=0A=
AccessFileName .htaccess=0A=
TypesConfig /etc/mime.types=0A=
DefaultType text/plain=0A=
LanguagePriority en fr de=0A=
Alias /icons/ /home/httpd/icons/=0A=
ScriptAlias /cgi-bin/ /home/httpd/cgi-bin/=0A=
browsermatch Mozilla/2 nokeepalive=0A=
browsermatch {MSIE 4.0b2;} nokeepalive downgrade-1.0 force-response-1.0=0A=
browsermatch {RealPlayer 4.0} force-response-1.0=0A=
browsermatch Java/1.0 force-response-1.0=0A=
browsermatch JDK/1.0 force-response-1.0=0A=
addtype text/html .shtml=0A=
addencoding x-compress Z=0A=
addencoding x-gzip gz=0A=
addhandler server-parsed .shtml=0A=
addhandler imap-file map=0A=
addlanguage en .en=0A=
addlanguage fr .fr=0A=
addlanguage de .de=0A=
addlanguage da .da=0A=
addlanguage el .el=0A=
addlanguage it .it=0A=
addicon /icons/binary.gif .bin .exe=0A=
addicon /icons/binhex.gif .hqx=0A=
addicon /icons/tar.gif .tar=0A=
addicon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv=0A=
addicon /icons/compressed.gif .Z .z .tgz .gz .zip=0A=
addicon /icons/a.gif .ps .ai .eps=0A=
addicon /icons/layout.gif .html .shtml .htm .pdf=0A=
addicon /icons/text.gif .txt=0A=
addicon /icons/c.gif .c=0A=
addicon /icons/p.gif .pl .py=0A=
addicon /icons/f.gif .for=0A=
addicon /icons/dvi.gif .dvi=0A=
addicon /icons/uuencoded.gif .uu=0A=
addicon /icons/script.gif .conf .sh .shar .csh .ksh .tcl=0A=
addicon /icons/tex.gif .tex=0A=
addicon /icons/bomb.gif core=0A=
addicon /icons/back.gif ..=0A=
addicon /icons/hand.right.gif README=0A=
addicon /icons/folder.gif ^^DIRECTORY^^=0A=
addicon /icons/blank.gif ^^BLANKICON^^=0A=
addiconbyencoding (CMP,/icons/compressed.gif) x-compress x-gzip=0A=
addiconbytype (TXT,/icons/text.gif) text/*=0A=
addiconbytype (IMG,/icons/image2.gif) image/*=0A=
addiconbytype (SND,/icons/sound2.gif) audio/*=0A=
addiconbytype (VID,/icons/movie.gif) video/*=0A=


To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to