httpd.conf

Gaurav Agarwal (gauravag@nde.vsnl.net.in)
Sun, 5 Sep 1999 16:27:53 +0530


This is a multi-part message in MIME format.

------=_NextPart_000_0009_01BEF7BB.9A371A00
Content-Type: text/plain;
charset="Windows-1252"
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,
Guarav

--- 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,
>>Gaurav.

------=_NextPart_000_0009_01BEF7BB.9A371A00
Content-Type: application/octet-stream;
name="httpd.conf"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="httpd.conf"

####=0A=
# Configuration dumper for Comanche. It can be configured, so the .conf =
is human friendly=0A=
####=0A=
=0A=
startservers 10=0A=
minspareservers 8=0A=
maxspareservers 20=0A=
keepalive off=0A=
MaxClients 150=0A=
maxrequestsperchild 100=0A=
pidfile /var/run/httpd.pid=0A=
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/mod_env.so=0A=
LoadModule config_log_module modules/mod_log_config.so=0A=
LoadModule agent_log_module modules/mod_log_agent.so=0A=
LoadModule referer_log_module modules/mod_log_referer.so=0A=
LoadModule mime_module modules/mod_mime.so=0A=
LoadModule negotiation_module modules/mod_negotiation.so=0A=
LoadModule status_module modules/mod_status.so=0A=
LoadModule info_module modules/mod_info.so=0A=
LoadModule includes_module modules/mod_include.so=0A=
LoadModule autoindex_module modules/mod_autoindex.so=0A=
LoadModule dir_module modules/mod_dir.so=0A=
LoadModule cgi_module modules/mod_cgi.so=0A=
LoadModule asis_module modules/mod_asis.so=0A=
LoadModule imap_module modules/mod_imap.so=0A=
LoadModule action_module modules/mod_actions.so=0A=
LoadModule userdir_module modules/mod_userdir.so=0A=
LoadModule proxy_module modules/libproxy.so=0A=
LoadModule alias_module modules/mod_alias.so=0A=
LoadModule rewrite_module modules/mod_rewrite.so=0A=
LoadModule access_module modules/mod_access.so=0A=
LoadModule auth_module modules/mod_auth.so=0A=
LoadModule anon_auth_module modules/mod_auth_anon.so=0A=
LoadModule db_auth_module modules/mod_auth_db.so=0A=
LoadModule digest_module modules/mod_digest.so=0A=
LoadModule expires_module modules/mod_expires.so=0A=
LoadModule headers_module modules/mod_headers.so=0A=
LoadModule usertrack_module modules/mod_usertrack.so=0A=
LoadModule setenvif_module modules/mod_setenvif.so=0A=
ClearModuleList=0A=
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\"" =
combined=0A=
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>=0A=
<Directory /home/httpd/html>=0A=
Options Indexes Includes FollowSymLinks=0A=
AllowOverride None=0A=
order allow,deny=0A=
allow from all=0A=
</directory>=0A=
<Directory /home/httpd/cgi-bin>=0A=
AllowOverride None=0A=
Options ExecCGI=0A=
AddHandler cgi-script .pl=0A=
</directory>=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=
</directory>=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=

------=_NextPart_000_0009_01BEF7BB.9A371A00--

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.rutgers.edu