Fragen zum Apache Webserver.....

  • #1
W

weissbrot

Neues Mitglied
Themenersteller
Dabei seit
02.04.2005
Beiträge
2
Reaktionspunkte
0
Moin moin,

hab ein kleines Problem mit meinem Apache. Ich möchte gerne verhindern, dass man durch meine Ordnerstruktur im Webroot Order browsen kann. Ist dies einfach zu realisieren? Ich finde es ein wenig unsicher wenn man einfach alles, was in meinem webverzeichnis ist, einsehen kann.

Danke schonmal im Vorraus.

MFG Jan
 
  • #2
Die einfachste Variante ist, in jedem Verzeichnis eine index.html zu platzieren.

Alternativ kannst du aber auch die Directive:

#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory h:/htdocs/>

#
# Possible values for the Options directive are None, All,
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that MultiViews must be named *explicitly* --- Options All
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
#
# for more information.
#
Options Indexes FollowSymLinks

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be All, None, or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None

#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>

in der httpd.conf auskommentieren.
(auskommentieren => # vor die Directive setzen)

Sicherungskopie der httpd.conf nicht vergessen ;)
 
  • #3
hallo
wenn ich es über das auskopieren mache kann ich den apache nicht mehr starten. es kommt immer ein fehler :( woran kann das liegen?
bye bene
 
  • #4
Starte mal den Apache über die Konsole.
Dort bekommst du eine Fehlermeldung angezeigt.
Diese bitte mal hier posten.
 
  • #5
hallo
ich kann über die console nicht starten, weil ich da schon mal was verpfuscht habe. da kommt folgende fehlermeldung:
Code:
>apache -k start
 10048)Normalerweise darf jede Socketadresse (Protokoll, Netzwerkadresse ode
nschluss) nur jeweils einmal verwendet werden. : make_sock: could not bind
address 0.0.0.0:80
listening sockets available, shutting down
ble to open logs
bye bene
 
  • #6
Diese Meldung kommt wenn du den Apache starten willst, obwohl er schon läuft. ;) ;)

apache -k stop
apache -k start
 
  • #7
hallo
nun hab ich ne andere fehlermeldung:
Code:
Syntax error on line 291 of D:/Server/Apache2/conf/httpd.conf:
</Directory> without matching <Directory> section

hier noch der ausschnit aus der config-datei:
Code:
#
# This should be changed to whatever you set DocumentRoot to.
#
#<Directory E:/htdocs>

#
# Possible values for the Options directive are None, All,
# or any combination of:
#  Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that MultiViews must be named *explicitly* --- Options All
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# [url]http://httpd.apache.org/docs-2.0/mod/core.html#options[/url]
# for more information.
#
  Options Indexes FollowSymLinks

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be All, None, or any combination of the keywords:
#  Options FileInfo AuthConfig Limit
#
  AllowOverride None

#
# Controls who can get stuff from this server.
#
  Order allow,deny
  Allow from all

#</Directory>

danke für deine mühe
bye bene
 
  • #8
Code:
#
# This should be changed to whatever you set DocumentRoot to.
#
#<Directory E:/htdocs>

sollte so aussehen:

Code:
#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory E:/htdocs>

Du solltest diese Zeile auskommentieren:

Code:
# The Options directive is both complicated and important. Please see
# [url]http://httpd.apache.org/docs-2.0/mod/core.html#options[/url]
# for more information.
#
  Options Indexes FollowSymLinks
 
  • #9
hallo
ich blick da irgendwie nicht :(
naja ist ja egal, davon geht die welt nicht unter ;) wenn ich irgendwo noch was dazu finde probier ich das mal aus.
bye bene
 
Thema:

Fragen zum Apache Webserver.....

ANGEBOTE & SPONSOREN

Statistik des Forums

Themen
113.840
Beiträge
707.963
Mitglieder
51.494
Neuestes Mitglied
Flensburg45
Oben