[Cascavel-pm] help urgente - apache manda fazer download de aplicação cgi

João Gabriel Casteluber Laass gabriel em joaogabriel.org
Sexta Junho 26 04:28:28 PDT 2009


Olá pessoal.

Se puderem me ajudar, preciso de um help urgentissimo.

Tenho que ir na faculdade apresentar um hello world em Perl com Apache
(http://localhost/index.pl) só que o apache está mandando fazer
download do arquivo.

#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "ola mundo\n";


Conf do apache:
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
AddType application/x-httpd-cgi .cgi
AddType application/x-httpd-cgi .pl

<VirtualHost *:80>
	ServerAdmin webmaster em localhost

	DocumentRoot /var/www

	<Directory /var/www/>						
		Options Indexes FollowSymLinks MultiViews +Includes
		AllowOverride None
		Order allow,deny
		allow from all
	</Directory>
	<Directory /var/www/site-fechadura/>						
		Options +ExecCGI
		AllowOverride None
		Order allow,deny
		allow from all
	</Directory>

	ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
	<Directory "/usr/lib/cgi-bin">
		AllowOverride None
		Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
		Order allow,deny
		Allow from all
	</Directory>

	ErrorLog /var/log/apache2/error.log

	# Possible values include: debug, info, notice, warn, error, crit,
	# alert, emerg.
	LogLevel warn

	CustomLog /var/log/apache2/access.log combined

    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

</VirtualHost>


Já de chmod 755, +x, ta tensoooo.

Help?!

João Gabriel C. Laass
27 8802.0195
www.joaogabriel.org


Mais detalhes sobre a lista de discussão Cascavel-pm