Thursday, July 29th 2010, 1:22pm UTC+2

You are not logged in.

  • Login
  • Register

pomi

Beginner

1

Wednesday, July 30th 2003, 4:06pm

Apache Verzeichnis Restrictions

Hey!

Ich hab hier nen Apache und würde für ein Verzeichnis gerne alle executes verbieten, d.h. also, dass man in diesem Verzeichnis keine PHP/CGI was auch immer scripts ausführen kann.

Ist das möglich?

merci und hoffe auf antwort :)

POMI
  • Go to the top of the page

Posts: 2,315

Location: NRW

2

Wednesday, July 30th 2003, 5:41pm

welches betriebssystem hast du denn?
  • Go to the top of the page

pomi

Beginner

3

Wednesday, July 30th 2003, 5:59pm

auf dem server läuft freebsd
  • Go to the top of the page

Posts: 2,315

Location: NRW

4

Wednesday, July 30th 2003, 6:44pm

hmm ne dann ka sry :)
  • Go to the top of the page

undefined

Super Moderator

Posts: 4,248

Location: Germany

5

Wednesday, July 30th 2003, 8:49pm

Suche in der httpd.conf die ROOT Options und ändere diese einfach ab.

PHP Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/usr/XYZ">

# AddOutputFilterByType text/html text/plain text/xml
#
# 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
#     Options Indexes Includes ExecCGI
#
#    AllowOverride All
    AllowOverride None
#
# Controls who can get stuff from this server.
#
    Order allow,deny
    Allow from all

</Directory>
Options setzt die Verzeichnis Rechte mit AllowOverride none unterbindest du das .htaccess Dateien Interpretiert werden

mfg Ming
Undefined Behavior (undefiniertes Verhalten) bedeutet meistens etwas ungültiges.
PHP Katepart - Speichenrechner - .htpasswd - RPM XDG Tool - Kcmnvview - QTidy
  • Go to the top of the page

pomi

Beginner

6

Thursday, July 31st 2003, 10:18am

mhh nicht wirklich...

Hab alles soweit geändert, aber das hilft nicht wirklich.

Gibt es keine Möglichkeit, dass man für ein bestimmes Verzeichnis bestimmt, dass keine PHP usw ausgeführt werden?

Thx
pomi
  • Go to the top of the page

undefined

Super Moderator

Posts: 4,248

Location: Germany

7

Thursday, July 31st 2003, 9:08pm

Dann füge dies noch mit in die Directory Directive ein.

PHP Source code

1
2
3
4
<LocationMatch "\.(php|php3|php4?)$">
Order allow,deny
Deny from all
</LocationMatch>

mfg Ming
Undefined Behavior (undefiniertes Verhalten) bedeutet meistens etwas ungültiges.
PHP Katepart - Speichenrechner - .htpasswd - RPM XDG Tool - Kcmnvview - QTidy
  • Go to the top of the page