Autoindex Problem mit Apache

ciubic

Mitglied
Hi

Ich hab mal wieder ein Server-Problem!
Diesmal nervt mich der Apache.



Also
Er sollte mir einen Index erstellen, wenn ein Ordner aufgerufen wird in dem sich keine Index Datei.

Wie es auf vielen Internetseite ist.
zB.: http://alt.room-105.com/


Jedoch bekomme ich immer die Fehlermeldung “ Forbidden“


http://primani.net/images/


Ich habe auch das Modul Autoindex geladen.

Danke
 
Danke

Ich glaube ich habe die Einstellungen richtig.

Die conf ist bei mir sehr groß.

Struktur:

Code:
# Overview of include files, chronologically:

#

# httpd.conf

# | 

# |-- uid.conf . . . . . . . . . . . . . . UserID/GroupID to run under

# |-- server-tuning.conf . . . . . . . . . sizing of the server (how many processes to start, ...)

# |-- sysconfig.d/loadmodule.conf . . . . . 
[*] load these modules

# |-- listen.conf . . . . . . . . . . . . . IP adresses / ports to listen on

# |-- mod_log_config.conf . . . . . . . . . define logging formats

# |-- sysconfig.d/global.conf . . . . . . . 
[*] server-wide general settings

# |-- mod_status.conf . . . . . . . . . . . restrict access to mod_status (server monitoring)

# |-- mod_info.conf . . . . . . . . . . . . restrict access to mod_info

# |-- mod_usertrack.conf . . . . . . . . . defaults for cookie-based user tracking

# |-- mod_autoindex-defaults.conf . . . . . defaults for displaying of server-generated directory listings

# |-- mod_mime-defaults.conf . . . . . . . defaults for mod_mime configuration

# |-- errors.conf . . . . . . . . . . . . . customize error responses

# |-- ssl-global.conf . . . . . . . . . . . SSL conf that applies to default server _and all_ virtual hosts

# |

# |-- default-server.conf . . . . . . . . . set up the default server that replies to non-virtual-host requests

# | |--mod_userdir.conf . . . . . . . . enable UserDir (if mod_userdir is loaded)

# | `--conf.d/apache2-manual?conf . . . add the docs ('?' = if installed)

# |

# |-- sysconfig.d/include.conf . . . . . . 
[*] your include files 

# | (for each file to be included here, put its name 

# | into APACHE_INCLUDE_* in /etc/sysconfig/apache2)

# |

# `-- vhosts.d/ . . . . . . . . . . . . . . for each virtual host, place one file here

# `-- *.conf . . . . . . . . . . . . . (*.conf is automatically included)

#

#

# Files marked 
[*] are created from sysconfig upon server restart: instead of

# these files, you edit /etc/sysconfig/apache2

 

 

# Filesystem layout:

#

# /etc/apache2/

# |-- conf.d/

# | |-- apache2-manual.conf . . . . . . . conf that comes with apache2-doc

# | |-- mod_php4.conf . . . . . . . . . . (example) conf that comes with apache2-mod_php4

# | `-- ... . . . . . . . . . . . . . . . other configuration added by packages

# |-- default-server.conf

# |-- errors.conf

# |-- httpd.conf . . . . . . . . . . . . . top level configuration file

# |-- listen.conf

# |-- magic

# |-- mime.types -> ../mime.types

# |-- mod_autoindex-defaults.conf

# |-- mod_info.conf

# |-- mod_log_config.conf

# |-- mod_mime-defaults.conf

# |-- mod_perl-startup.pl

# |-- mod_status.conf

# |-- mod_userdir.conf

# |-- mod_usertrack.conf

# |-- server-tuning.conf

# |-- ssl-global.conf

# |-- ssl.crl/ . . . . . . . . . . . . . . PEM-encoded X.509 Certificate Revocation Lists (CRL)

# |-- ssl.crt/ . . . . . . . . . . . . . . PEM-encoded X.509 Certificates

# |-- ssl.csr/ . . . . . . . . . . . . . . PEM-encoded X.509 Certificate Signing Requests

# |-- ssl.key/ . . . . . . . . . . . . . . PEM-encoded RSA Private Keys

# |-- ssl.prm/ . . . . . . . . . . . . . . public DSA Parameter Files

# |-- sysconfig.d/ . . . . . . . . . . . . files that are created from /etc/sysconfig/apache2

# | |-- global.conf

# | |-- include.conf

# | `-- loadmodule.conf

# |-- uid.conf

# `-- vhosts.d/ . . . . . . . . . . . . . . put your virtual host configuration (*.conf) here

# |-- vhost-ssl.template

# `-- vhost.template

Datei: mod_autoindex-defaults.conf
Code:
<IfModule mod_autoindex.c>

IndexOptions FancyIndexing VersionSort NameWidth=*

# Add Last-Modified and ETag values for the listed directory in the HTTP header, 

# based on files' modification dates

#IndexOptions +TrackModified

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 /icons/unknown.gif

ReadmeName README.html

HeaderName HEADER.html

IndexIgnore .?* *~ *# HEADER* RCS CVS *,v *,t

</IfModule>

Muss ich noch in einer weiteren conf Datei etwas ändern.
 
Krass. Das nenne ich eine strukturierte Konfiguration :)
In der mod_autoindex-defaults.conf sieht bis auf die letzte Zeile alles okay aus.


Ich wundere mich nur über das .?*
Code:
IndexIgnore .?* *~ *# HEADER* RCS CVS *,v *,t

Was passiert, wenn Du diese Zeile auskommentierst?
(natürlich danach den Apache neu starten)
 
Dann - ich gebe es offen zu - bin ich überfragt. :confused:
Wie sehen denn die Ordnerrechte aus? Welcher User gehört zu Apache/PHP?
Möglicherweise könnte es noch daran liegen.
 
Da ich Daten in einem Ordner ohne Probleme darstellen kann (wenn die Url direkt zur Datei führ) glaube ich nicht dass es etwas mit Benutzerrechte zu tun hat.



Er macht einfach keinen Index.



Ich könnte alle conf Files in ein rar packen und wenn jemand Lust hat kann er sich die mal anschauen
 
Ja, bitte häng die Konfigurationen an (aus Sicherheitsgründen ändere die IP und Domain!), wir schauen dann mal durch. Du merkst ja, sonst bleibt nur rumraten übrig :)
Ich denke das irgendwo ein klitzekleiner Fehler drin ist, ein slash oder punkt zuviel vielleicht :suspekt:
 
Zurück