Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Mod_autoindex make apache server restarting randomly |
|
Author |
|
bagu
Joined: 06 Jan 2011 Posts: 193 Location: France
|
Posted: Mon 27 Feb '12 16:39 Post subject: Mod_autoindex make apache server restarting randomly |
|
|
Hello,
I use mod_autoindex with these value :
Code: | #
# Directives controlling the display of server-generated directory listings.
#
# Required modules: mod_authz_core, mod_authz_host,
# mod_autoindex, mod_alias
#
# To see the listing of a directory, the Options directive for the
# directory must include "Indexes", and the directory must not contain
# a file matching those listed in the DirectoryIndex directive.
#
#
# IndexOptions: Controls the appearance of server-generated directory
# listings.
#
IndexOptions FancyIndexing HTMLTable XHTML VersionSort NameWidth=* IgnoreCase FoldersFirst
# We include the /icons/ alias for FancyIndexed directory listings. If
# you do not use FancyIndexing, you may comment this out.
#
Alias /icons/ "D:/wamp/apache/icons/"
<Directory "D:/wamp/apache/icons">
Options Indexes MultiViews
AllowOverride None
Require all granted
</Directory>
#
# AddIcon* directives tell the server which icon to show for different
# files or filename extensions. These are only displayed for
# FancyIndexed directories.
#
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*
AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core
AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^
#
# DefaultIcon is which icon to show for files which do not have an icon
# explicitly set.
#
DefaultIcon /icons/unknown.gif
#
# AddDescription allows you to place a short description after a file in
# server-generated indexes. These are only displayed for FancyIndexed
# directories.
# Format: AddDescription "description" filename
#
AddDescription "GZIP compressed document" .gz
AddDescription "tar archive" .tar
AddDescription "GZIP compressed tar archive" .tgz
AddDescription "Image PNG" *.png *.PNG
AddDescription "Image JPG" *.jpg *.JPG
AddDescription "Image BMP" *.bmp *.BMP
AddDescription "Image SVG" *.svg *.SVG
AddDescription "Image GIF" *.gif *.GIF
AddDescription "Image WMF" *.wmf *.WMF
AddDescription "Image PSD" *.psd *.PSD
AddDescription "Image ICO" *.ico *.ICO
AddDescription "Video QuickTime" *.mov *.MOV
AddDescription "Video AVI" *.avi *.AVI
AddDescription "Video MPEG" *.mpg *.MPG
AddDescription "Video WMV" *.wmv *.WMV
AddDescription "Audio MP3" *.mp3 *.MP3
AddDescription "Audio MP4" *.mp4 *.MP4
AddDescription "Audio WMA" *.wma *.WMA
AddDescription "Audio MIDI" *.mid *.midi
AddDescription "Fichier Flash Video" *.flv
AddDescription "Projet Flash" *.fla
AddDescription "Fichier ActionScript" *.as
AddDescription "Animation Flash" *.swf
AddDescription "Fichier de texte brut" *.txt
AddDescription "Document Word" *.doc *.rtf *.docx
AddDescription "Presentation PowerPoint" *.ppt *.pptx
AddDescription "Feuille de calcul Excel" *.xls *.xlsx
AddDescription "Page Web PHP" *.php
AddDescription "Page Web PHP" *.phtml
AddDescription "Page Web HTML" *.htm *.HTM
AddDescription "Fichier HTML Compile" *.chm
AddDescription "Comportement IExplorer" *.htc
AddDescription "Feuille de style CSS" *.css
AddDescription "Fichier Javascript" *.js
AddDescription "Fichier XML" *.xml
AddDescription "Executable" *.exe *.EXE
AddDescription "Document Adobe PDF" *.pdf *.PDF
AddDescription "Archive ZIP" *.zip *.ZIP
AddDescription "Archive RAR" *.rar *.RAR
AddDescription "Archive ARJ" *.arj *.ARJ
AddDescription "Archive ARC" *.arc *.ARC
AddDescription "Archive TAR" *.tar *.TAR
AddDescription "Archive JAR" *.jar *.JAR
AddDescription "Archive GZ" *.gz *.GZ
AddDescription "Archive TARGZ" *.targz *.TARGZ
AddDescription "Fichier C" *.c
AddDescription "Fichier d'ent-tete" *.h
AddDescription "Projet Visual C++" *.vcproj
AddDescription "Dossier parent" ..
AddDescription "Dossier" */
#
# ReadmeName is the name of the README file the server will look for by
# default, and append to directory listings.
#
# HeaderName is the name of a file which should be prepended to
# directory indexes.
ReadmeName README.html
HeaderName HEADER.html
#
# IndexIgnore is a set of filenames which directory indexing should ignore
# and not include in the listing. Shell-style wildcarding is permitted.
#
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t Thumbs.db
|
And sometimes, i don't know why, the server stop responding, reboot, and show an error 500.
When i comment out :
Code: | # Fancy directory listings
Include conf/extra/httpd-autoindex.conf |
and restart the server, everything work fine, and when i un-comment the line above and re-restart the server, it work again...
Can someone tell me why ? Oo
Thanks. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Tue 15 May '12 12:41 Post subject: Re: Mod_autoindex make apache server restarting randomly |
|
|
[code]
AddDescription "Dossier parent" ..
AddDescription "Dossier" */
[/quote]
Those two are the only ones that I have never seen before.
The .. I know also from AddIcon /icons/back.gif ..
Maybe you can change the second one to
AddDescription "Dossier" ^^DIRECTORY^^
Please try that. I have no clue if that works, but maybe it does. |
|
Back to top |
|
|
|
|
|
|