1 |
Bonjour à tous, |
2 |
Bon comme certains le savent mnt j'installe bugzilla et voila a quoi je |
3 |
me heurtes (enfin y'avais aussi perl mais ca c'est reglé et encore merci |
4 |
seb) : |
5 |
---------------------------------------------------- |
6 |
http://www.pan-gaia.dnsalias.net/bugzilla/index.cgi |
7 |
|
8 |
La j'avais une erreure 403 |
9 |
------------------------------------------------ |
10 |
|
11 |
Bon je regarde mon fichier de conf pour apache (et la deja je decouvre.. |
12 |
au bout de 25 min... :$... que httpd.conf n'existe plus mais il est |
13 |
remplacé par apache2.conf et commonapache2.conf, le dernier j'ai mis |
14 |
trop de temps a decouvrir son existance... habitude quand tu nous tiens) |
15 |
et je met ca : |
16 |
-------------------------------------------------------- |
17 |
|
18 |
alfred bugzilla # nano /etc/apache2/conf/commonapache2.conf |
19 |
|
20 |
<Directory "/var/www/localhost/htdocs/bugzilla/"> |
21 |
Options ExecCGI |
22 |
AllowOverride Limit |
23 |
Order allow,deny |
24 |
Allow from all |
25 |
</Directory> |
26 |
|
27 |
AddHandler cgi-script .cgi |
28 |
|
29 |
PS : a la fin le fichier en integral :) |
30 |
|
31 |
Mais mnt j'ai ca |
32 |
---------------------------------------------------- |
33 |
http://www.pan-gaia.dnsalias.net/bugzilla/index.cgi |
34 |
|
35 |
|
36 |
Internal Server Error |
37 |
|
38 |
The server encountered an internal error or misconfiguration and was |
39 |
unable to complete your request. |
40 |
|
41 |
Please contact the server administrator, sebastiengrillot@×××××.com and |
42 |
inform them of the time the error occurred, and anything you might have |
43 |
done that may have caused the error. |
44 |
|
45 |
More information about this error may be available in the server error log. |
46 |
Apache/2.0.50 (Gentoo/Linux) PHP/4.3.8 Server at Alfred, ZoRk's Server |
47 |
Port 80 |
48 |
|
49 |
--------- |
50 |
|
51 |
|
52 |
alfred bugzilla # tail -f /var/log/apache2/error_log |
53 |
[Fri Nov 26 09:05:29 2004] [warn] child process 4151 still did not exit, |
54 |
sending a SIGTERM |
55 |
[Fri Nov 26 09:05:29 2004] [warn] child process 4152 still did not exit, |
56 |
sending a SIGTERM |
57 |
[Fri Nov 26 09:05:29 2004] [warn] child process 4153 still did not exit, |
58 |
sending a SIGTERM |
59 |
[Fri Nov 26 09:05:29 2004] [notice] caught SIGTERM, shutting down |
60 |
[Fri Nov 26 09:05:39 2004] [notice] Digest: generating secret for digest |
61 |
authentication ... |
62 |
[Fri Nov 26 09:05:39 2004] [notice] Digest: done |
63 |
[Fri Nov 26 09:05:40 2004] [notice] Apache/2.0.50 (Gentoo/Linux) |
64 |
PHP/4.3.8 configured -- resuming normal operations |
65 |
[Fri Nov 26 09:08:53 2004] [error] [client 192.168.1.1] Premature end of |
66 |
script headers: index.cgi |
67 |
[Fri Nov 26 09:08:53 2004] [error] [client 192.168.1.1] (2)No such file |
68 |
or directory: exec of '/var/www/localhost/htdocs/bugzilla/index.cgi' failed |
69 |
[Fri Nov 26 09:08:53 2004] [error] [client 192.168.1.1] Premature end of |
70 |
script headers: index.cgi |
71 |
[Fri Nov 26 09:08:53 2004] [error] [client 192.168.1.1] File does not |
72 |
exist: /var/www/localhost/htdocs/favicon.ico |
73 |
|
74 |
Alors comme j'ai installé apache2 y'a un moment je me demande si je |
75 |
n'aurais pas omis qqchose a l'install qui fait que maintenant ca veux |
76 |
plus... Ou alors les directives que j'ai ne s'appliques pas a un |
77 |
apache2... et le net m'aide pas trop sur ce coup (enfin google ;)) |
78 |
|
79 |
|
80 |
|
81 |
|
82 |
Linuxement |
83 |
|
84 |
Seb |
85 |
|
86 |
PS voici le commonapache2.conf mais j'ai retiré les commentaires car je |
87 |
voulais l'allerger alors j'ai retiré les commentraires... |
88 |
|
89 |
alfred bugzilla # cat /etc/apache2/conf/commonapache2.conf |
90 |
|
91 |
User apache |
92 |
Group apache |
93 |
|
94 |
ServerAdmin sebastiengrillot@×××××.com |
95 |
#root@localhost |
96 |
|
97 |
|
98 |
<Directory /> |
99 |
Options -All -Multiviews |
100 |
AllowOverride None |
101 |
<IfModule mod_access.c> |
102 |
Order deny,allow |
103 |
Deny from all |
104 |
</IfModule> |
105 |
</Directory> |
106 |
|
107 |
|
108 |
<Directory "/var/www/localhost/htdocs/bugzilla/"> |
109 |
Options ExecCGI |
110 |
AllowOverride Limit |
111 |
Order allow,deny |
112 |
Allow from all |
113 |
</Directory> |
114 |
|
115 |
<IfModule mod_userdir.c> |
116 |
UserDir public_html |
117 |
</IfModule> |
118 |
|
119 |
<IfModule mod_dir.c> |
120 |
DirectoryIndex index.html index.php index.php3 index.shtml |
121 |
index.cgi index.pl index.htm Default.htm default.htm index.html.var |
122 |
</IfModule> |
123 |
AccessFileName .htaccess |
124 |
|
125 |
<IfModule mod_access.c> |
126 |
<Files ~ "^\.ht"> |
127 |
Order allow,deny |
128 |
Deny from all |
129 |
</Files> |
130 |
</IfModule> |
131 |
UseCanonicalName On |
132 |
<IfModule mod_mime.c> |
133 |
TypesConfig conf/mime.types |
134 |
</IfModule> |
135 |
DefaultType text/plain |
136 |
<IfModule mod_mime_magic.c> |
137 |
MIMEMagicFile conf/magic |
138 |
</IfModule> |
139 |
HostnameLookups Off |
140 |
EnableMMAP on |
141 |
<IfModule mod_log_config.c> |
142 |
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" |
143 |
combined |
144 |
LogFormat "%h %l %u %t \"%r\" %>s %b" common |
145 |
LogFormat "%{Referer}i -> %U" referer |
146 |
LogFormat "%{User-agent}i" agent |
147 |
LogFormat "%v %h %l %u %t \"%r\" %>s %b %T" script |
148 |
LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" |
149 |
\"%{User-Agent}i\" VLOG=%{VLOG}e" vhost |
150 |
|
151 |
<IfModule mod_logio.c> |
152 |
# You need to enable mod_logio.c to use %I and %O |
153 |
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" |
154 |
\"%{User-Agent}i\" %I %O" combinedio |
155 |
</IfModule> |
156 |
</IfModule> |
157 |
ServerTokens Full |
158 |
ServerSignature On |
159 |
<IfModule mod_alias.c> |
160 |
Alias /icons/ /var/www/localhost/icons/ |
161 |
Alias /doc /usr/share/doc |
162 |
ScriptAlias /cgi-bin/ /var/www/localhost/cgi-bin/ |
163 |
ScriptAlias /protected-cgi-bin/ /var/www/localhost/protected-cgi-bin/ |
164 |
ScriptAliasMatch ^/~([^/]*)/cgi-bin/(.*) |
165 |
/home/$1/public_html/cgi-bin/$2 |
166 |
|
167 |
<IfModule mod_perl.c> |
168 |
#Provide two aliases to the same cgi-bin directory, |
169 |
#to see the effects of the 2 different mod_perl modes |
170 |
#for Apache::Registry Mode |
171 |
Alias /perl/ /var/www/localhost/perl/ |
172 |
#for Apache::Perlrun Mode |
173 |
Alias /cgi-perl/ /var/www/localhost/perl/ |
174 |
</IfModule> |
175 |
|
176 |
</IfModule> |
177 |
<IfModule mod_autoindex.c> |
178 |
AddIconByEncoding (CMP,/icons/compressed.png) x-compress x-gzip |
179 |
|
180 |
AddIconByType (TXT,/icons/text.png) text/* |
181 |
AddIconByType (IMG,/icons/image2.png) image/* |
182 |
AddIconByType (SND,/icons/sound2.png) audio/* |
183 |
AddIconByType (VID,/icons/movie.png) video/* |
184 |
|
185 |
AddIcon /icons/binary.gif .bin .exe |
186 |
AddIcon /icons/binhex.gif .hqx |
187 |
AddIcon /icons/tar.gif .tar |
188 |
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv |
189 |
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip .bz2 |
190 |
AddIcon /icons/a.gif .ps .ai .eps |
191 |
AddIcon /icons/layout.gif .html .shtml .htm .pdf |
192 |
AddIcon /icons/text.gif .txt |
193 |
AddIcon /icons/c.gif .c |
194 |
AddIcon /icons/p.gif .pl .py .php .php3 |
195 |
AddIcon /icons/f.gif .for |
196 |
AddIcon /icons/dvi.gif .dvi |
197 |
AddIcon /icons/uuencoded.gif .uu |
198 |
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl |
199 |
AddIcon /icons/tex.gif .tex |
200 |
AddIcon /icons/bomb.gif core |
201 |
|
202 |
AddIcon /icons/back.gif .. |
203 |
AddIcon /icons/hand.right.gif README |
204 |
AddIcon /icons/folder.gif ^^DIRECTORY^^ |
205 |
AddIcon /icons/blank.gif ^^BLANKICON^^ |
206 |
|
207 |
|
208 |
[Snip] |
209 |
|
210 |
|
211 |
AddHandler cgi-script .cgi |
212 |
AddHandler type-map var |
213 |
|
214 |
AddType text/html .shtml |
215 |
AddOutputFilter INCLUDES .shtml |
216 |
|
217 |
AddHandler imap-file map |
218 |
</IfModule> |
219 |
|
220 |
<Location /manual> |
221 |
Options Multiviews |
222 |
ErrorDocument 404 "The document you requested has not been |
223 |
installed on your system." |
224 |
</Location> |
225 |
|
226 |
<IfModule mod_setenvif.c> |
227 |
# |
228 |
# The following directives modify normal HTTP response behavior to |
229 |
# handle known problems with browser implementations. |
230 |
# |
231 |
BrowserMatch "Mozilla/2" nokeepalive |
232 |
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 |
233 |
force-response-1.0 |
234 |
BrowserMatch "RealPlayer 4\.0" force-response-1.0 |
235 |
BrowserMatch "Java/1\.0" force-response-1.0 |
236 |
BrowserMatch "JDK/1\.0" force-response-1.0 |
237 |
|
238 |
BrowserMatch "Microsoft Data Access Internet Publishing Provider" |
239 |
redirect-carefully |
240 |
BrowserMatch "^WebDrive" redirect-carefully |
241 |
BrowserMatch "^gnome-vfs" redirect-carefully |
242 |
BrowserMatch "^WebDAVFS" redirect-carefully |
243 |
</IfModule> |
244 |
# End of browser customization directives |
245 |
|
246 |
<IfModule mod_status.c> |
247 |
<Location /server-status> |
248 |
SetHandler server-status |
249 |
<IfModule mod_access.c> |
250 |
Order deny,allow |
251 |
Deny from all |
252 |
allow from 127.0.0.1 |
253 |
#Allow from .your_domain.com |
254 |
</IfModule> |
255 |
</Location> |
256 |
</IfModule> |
257 |
<IfModule mod_info.c> |
258 |
<Location /server-info> |
259 |
SetHandler server-info |
260 |
<IfModule mod_access.c> |
261 |
Order deny,allow |
262 |
Deny from all |
263 |
allow from 127.0.0.1 |
264 |
#Allow from .your_domain.com |
265 |
</IfModule> |
266 |
</Location> |
267 |
</IfModule> |
268 |
|
269 |
<IfModule mod_perl.c> |
270 |
<Location /perl-status> |
271 |
SetHandler perl-script |
272 |
<IfDefine MODPERL2> |
273 |
PerlResponseHandler Apache::Status |
274 |
</IfDefine> |
275 |
<IfDefine !MODPERL2> |
276 |
PerlResponseHandler ModPerl::Status |
277 |
</IfDefine> |
278 |
<IfModule mod_access.c> |
279 |
Order deny,allow |
280 |
Deny from all |
281 |
Allow from 127.0.0.1 |
282 |
</IfModule> |
283 |
</Location> |
284 |
</IfModule> |
285 |
|
286 |
<IfModule mod_deflate.c> |
287 |
<Directory "/var/www/localhost/htdocs/manual"> |
288 |
AddOutputFilterByType DEFLATE text/html |
289 |
</Directory> |
290 |
|
291 |
# DeflateFilterNote - Set a note to report on compression ratio |
292 |
# DeflateFilterNote deflate_ratio |
293 |
# LogFormat "%h %l %u %t \"%r\" %>s %b mod_deflate: %{deflate_ratio}n |
294 |
pct." common_with_deflate_info |
295 |
# CustomLog logs/deflate.log common_with_deflate_info |
296 |
# # Set the Deflate window size (1-15) |
297 |
# DeflateWindowSize 10 |
298 |
# # Set the Deflate Memory Level (1-9) |
299 |
# DeflateMemLevel 6 |
300 |
</IfModule> |
301 |
|
302 |
<Directory /var/www/localhost/htdocs> |
303 |
Options -Indexes FollowSymLinks MultiViews |
304 |
AllowOverride All |
305 |
# |
306 |
# Controls who can get stuff from this server. |
307 |
# |
308 |
<IfModule mod_access.c> |
309 |
Order allow,deny |
310 |
Allow from all |
311 |
</IfModule> |
312 |
</Directory> |
313 |
|
314 |
<Directory /var/www/localhost/perl> |
315 |
AllowOverride All |
316 |
Options -Indexes FollowSymLinks MultiViews ExecCGI |
317 |
<IfModule mod_access.c> |
318 |
Order allow,deny |
319 |
Allow from all |
320 |
</IfModule> |
321 |
</Directory> |
322 |
<IfModule mod_cgid.c> |
323 |
# Scriptsock /cgisock |
324 |
</IfModule> |
325 |
|
326 |
### |
327 |
### This is intended for your world-accessible CGI programs. |
328 |
### |
329 |
<Directory /var/www/localhost/cgi-bin> |
330 |
AllowOverride All |
331 |
Options ExecCGI |
332 |
<IfModule mod_access.c> |
333 |
Order allow,deny |
334 |
Allow from all |
335 |
</IfModule> |
336 |
</Directory> |
337 |
|
338 |
### |
339 |
### Access to these CGI programs will be restricted. |
340 |
### |
341 |
<Directory /var/www/localhost/protected-cgi-bin> |
342 |
AllowOverride All |
343 |
Options ExecCGI |
344 |
<IfModule mod_access.c> |
345 |
Order deny,allow |
346 |
Deny from all |
347 |
Allow from 127.0.0.1 |
348 |
#allow from .your_domain.com |
349 |
</IfModule> |
350 |
</Directory> |
351 |
|
352 |
<Directory /home/*/public_html> |
353 |
AllowOverride All |
354 |
Options MultiViews -Indexes Includes FollowSymLinks |
355 |
<IfModule mod_access.c> |
356 |
Order allow,deny |
357 |
Allow from all |
358 |
</IfModule> |
359 |
</Directory> |
360 |
|
361 |
<Directory /home/*/public_html/cgi-bin> |
362 |
Options +ExecCGI -Includes -Indexes |
363 |
SetHandler cgi-script |
364 |
</Directory> |
365 |
|
366 |
<IfModule mod_perl.c> |
367 |
<Directory /home/*/public_html/perl> |
368 |
SetHandler perl-script |
369 |
PerlResponseHandler ModPerl::PerlRun |
370 |
Options -Indexes ExecCGI |
371 |
<IfDefine MODPERL2> |
372 |
PerlOptions +ParseHeaders |
373 |
</IfDefine> |
374 |
<IfDefine !MODPERL2> |
375 |
PerlSendHeader On |
376 |
</IfDefine> |
377 |
</Directory> |
378 |
</IfModule> |
379 |
|
380 |
<Directory /var/www/localhost/icons> |
381 |
Options -Indexes MultiViews |
382 |
AllowOverride None |
383 |
<IfModule mod_access.c> |
384 |
Order allow,deny |
385 |
Allow from all |
386 |
</IfModule> |
387 |
</Directory> |
388 |
|
389 |
<Directory /usr/share/doc> |
390 |
<IfModule mod_deflate.c> |
391 |
AddOutputFilterByType DEFLATE text/html |
392 |
</IfModule> |
393 |
Options Indexes FollowSymLinks |
394 |
<IfModule mod_access.c> |
395 |
Order deny,allow |
396 |
Deny from all |
397 |
Allow from 127.0.0.1 |
398 |
#allow from .your_domain.com |
399 |
</IfModule> |
400 |
</Directory> |
401 |
|
402 |
<Location /index.shtml> |
403 |
Options +Includes |
404 |
</Location> |
405 |
|
406 |
<IfModule mod_perl.c> |
407 |
<Location "^/perl/*.pl> |
408 |
SetHandler perl-script |
409 |
<IfDefine MODPERL2> |
410 |
PerlResponseHandler Apache2::ModPerl::Registry |
411 |
</IfDefine> |
412 |
<IfDefine !MODPERL2> |
413 |
PerlResponseHandler ModPerl::Registry |
414 |
</IfDefine> |
415 |
Options -Indexes ExecCGI |
416 |
PerlSendHeader On |
417 |
</Location> |
418 |
|
419 |
#set Apache::PerlRun Mode for /cgi-perl Alias |
420 |
<Location /cgi-perl/*.pl> |
421 |
SetHandler perl-script |
422 |
PerlResponseHandler ModPerl::PerlRun |
423 |
Options -Indexes ExecCGI |
424 |
PerlSendHeader On |
425 |
</Location> |
426 |
</IfModule> |
427 |
|
428 |
<IfModule mod_alias.c> |
429 |
AliasMatch ^/manual(?:/(?:de|en|fr|ja|ko|ru))?(/.*)?$ |
430 |
"/var/www/localhost/htdocs/manual/$1" |
431 |
</IfModule> |
432 |
|
433 |
<Directory "/var/www/localhost/htdocs/manual"> |
434 |
Options Indexes |
435 |
AllowOverride None |
436 |
Order allow,deny |
437 |
Allow from all |
438 |
|
439 |
<Files *.html> |
440 |
SetHandler type-map |
441 |
</Files> |
442 |
|
443 |
SetEnvIf Request_URI ^/manual/de/ prefer-language=de |
444 |
SetEnvIf Request_URI ^/manual/en/ prefer-language=en |
445 |
SetEnvIf Request_URI ^/manual/fr/ prefer-language=fr |
446 |
SetEnvIf Request_URI ^/manual/ja/ prefer-language=ja |
447 |
SetEnvIf Request_URI ^/manual/ko/ prefer-language=ko |
448 |
SetEnvIf Request_URI ^/manual/ru/ prefer-language=ru |
449 |
RedirectMatch 301 ^/manual(?:/(de|en|fr|ja|ko|ru)){2,}(/.*)?$ |
450 |
/manual/$1$2 |
451 |
</Directory> |
452 |
|
453 |
|
454 |
AddType application/x-httpd-php .php |
455 |
AddType application/x-httpd-php .phtml |
456 |
AddType application/x-httpd-php .php3 |
457 |
AddType application/x-httpd-php .php4 |
458 |
AddType application/x-httpd-php-source .phps |
459 |
|
460 |
|
461 |
|
462 |
-- |
463 |
gentoo-user-fr@g.o mailing list |