Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [users@httpd] Perl, CGI and Apache
- From: Joshua Slive <joshua@xxxxxxxx>
- Subject: Re: [users@httpd] Perl, CGI and Apache
- Date: Sun, 30 Nov 2003 11:03:17 -0500 (Eastern Standard Time)
On Sun, 30 Nov 2003, Wendy Moore wrote: > I've changed the httpd.conf > > ScriptAlias /cgi-bin/ "d:/WebDEV/Apache/cgi-bin/" > > > <Directory "d:/WebDEV/Apache/cgi-bin/"> > AllowOverride None > Options ExecCGI > Order allow,deny > Allow from all > </Directory> > > AddHandler cgi-script .cgi .pl > > > When taking the URL: http://apollo/cgi-bin/printenv.pl , it will > download a file printenv.pl > > which contains the output of the perlscript. It works correctly if I > change the extention from .pl to .cgi. > > How can I configure Apache so I don't need to change the extention? First the answer to your question: This has nothing to do with apache. It is MSIE that is violating the HTTP standard and deciding how to handle the content based on extension rather than mime-type. See: http://httpd.apache.org/docs/misc/FAQ.html#ie-ignores-mime Second: You have a bunch of superfluous stuff. The ScriptAlias sets the correct options and handler for you, so you don't need the "Options ExecCGI" or the "AddHandler" directive. Joshua. --------------------------------------------------------------------- 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@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
- References:
- [users@httpd] Perl, CGI and Apache
- From: Wendy Moore
- [users@httpd] Perl, CGI and Apache
- Prev by Date: [users@httpd] Perl, CGI and Apache
- Next by Date: Re: [users@httpd] Server-status
- Previous by thread: [users@httpd] Perl, CGI and Apache
- Next by thread: [users@httpd] Converting Apache from Win2K Pro to Win2K Server
- Index(es):