Bonjour,
je me retrouve comme un couillon à ne pas pouvoir faire fonctionner mes scripts CGI sur Archlinux dans les répertoires utilisateurs désignés
par exemple, ce petit script tout bête fonctionne très bien sur Debian, mais sur Archlinux, c'est le code qui est affiché
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 # cat /etc/httpd/conf/extra/httpd-userdir.conf UserDir public_html UserDir disabled root <Directory "/home/*/public_html"> AllowOverride FileInfo AuthConfig Limit Indexes Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec Require method GET POST OPTIONS <Limit GET POST OPTIONS> Order allow,deny Allow from all </Limit> <LimitExcept GET POST OPTIONS> Order deny,allow Deny from all </LimitExcept> </Directory> <Directory "/home/*/public_html/cgi-bin/"> Options ExecCGI SetHandler cgi-script </Directory>
:si je fais charger modules/mod_cgi.so, alors le serveur retourne une erreur :End of script output before headers; donc, ça avance un peu...
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5 #!/bin/bash printf "Content-type: text/plain\n\n" printf "Hello\n"
alors que, depuis /src/http/cgi-bin/, le script fonctionne, et m'affiche Hello
Edit: j'ai essayé avec ± le même script en perl, avec le même résultat.
Partager