order deny, allow wirkt nicht

robotto7831a

Well-Known Member
Hallo,

ich möchte für einen Unterordner den Zugriff einschränken.

Dazu habe ich in dem Ordner eine .htaccess Datei angelegt mit folgendem Inhalt.

Code:
Order deny,allow
Deny from all
allow from localhost

Leider werden die Anweisungen komplett ignoriert. Ich komme trotzdem in das Verzeichnis und die index.html wird angezeigt obwohl ich nicht localhost bin.

Jemand eine Idee?
 

robotto7831a

Well-Known Member
Hat keiner einer Idee?

Es sieht so aus, dass keinerlei deny oder allow Regeln ausgewertet werden.

Ich kann sogar ohne Probleme von extern /server-status aufrufen.

Code:
 <Location /server-status>
    SetHandler server-status
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1 ::1
#    Allow from 192.0.2.0/24
</Location>
 

robotto7831a

Well-Known Member
Hier mal die Ausgaben von mod_info.
Code:
    In file: /etc/apache2/sites-enabled/100-meineseite.vhost
       1: <Directory /var/www/meineseite>
       3:   Order Deny,Allow
       4:   Deny from all
        : </Directory>
       7: <VirtualHost 144.x.x.x:80>
      28:   <Directory /var/www/meineseite/web>
      31:     Order allow,deny
      32:     Allow from all
        :   </Directory>
      34:   <Directory /var/www/clients/client1/web17/web>
      37:     Order allow,deny
      38:     Allow from all
        :   </Directory>
      64:   <Directory /var/www/meineseite/web>
      69:     Order allow,deny
      70:     Allow from all
        :   </Directory>
      72:   <Directory /var/www/clients/client1/web17/web>
      77:     Order allow,deny
      78:     Allow from all
        :   </Directory>
     105:   <DirectoryMatch \.svn>
     106:     Order Deny,Allow
     107:     Deny from All
        :   </DirectoryMatch>
        : </VirtualHost>
     118: <VirtualHost 144.x.x.x:443>
     143:   <Directory /var/www/meineseite/web>
     146:     Order allow,deny
     147:     Allow from all
        :   </Directory>
     149:   <Directory /var/www/clients/client1/web17/web>
     152:     Order allow,deny
     153:     Allow from all
        :   </Directory>
     179:   <Directory /var/www/meineseite/web>
     184:     Order allow,deny
     185:     Allow from all
        :   </Directory>
     187:   <Directory /var/www/clients/client1/web17/web>
     192:     Order allow,deny
     193:     Allow from all
        :   </Directory>
     220:   <DirectoryMatch \.svn>
     221:     Order Deny,Allow
     222:     Deny from All
        :   </DirectoryMatch>
        : </VirtualHost>
     233: <VirtualHost [2a01:x:x:x::x]:80>
     254:   <Directory /var/www/meineseite/web>
     257:     Order allow,deny
     258:     Allow from all
        :   </Directory>
     260:   <Directory /var/www/clients/client1/web17/web>
     263:     Order allow,deny
     264:     Allow from all
        :   </Directory>
     290:   <Directory /var/www/meineseite/web>
     295:     Order allow,deny
     296:     Allow from all
        :   </Directory>
     298:   <Directory /var/www/clients/client1/web17/web>
     303:     Order allow,deny
     304:     Allow from all
        :   </Directory>
     331:   <DirectoryMatch \.svn>
     332:     Order Deny,Allow
     333:     Deny from All
        :   </DirectoryMatch>
        : </VirtualHost>
     344: <VirtualHost [2a01:x:x:x::x]:443>
     369:   <Directory /var/www/meineseite/web>
     372:     Order allow,deny
     373:     Allow from all
        :   </Directory>
     375:   <Directory /var/www/clients/client1/web17/web>
     378:     Order allow,deny
     379:     Allow from all
        :   </Directory>
     405:   <Directory /var/www/meineseite/web>
     410:     Order allow,deny
     411:     Allow from all
        :   </Directory>
     413:   <Directory /var/www/clients/client1/web17/web>
     418:     Order allow,deny
     419:     Allow from all
        :   </Directory>
     446:   <DirectoryMatch \.svn>
     447:     Order Deny,Allow
     448:     Deny from All
        :   </DirectoryMatch>
        : </VirtualHost>
Code:
    In file: /etc/apache2/sites-enabled/100-meineseite.vhost
       1: <Directory /var/www/meineseite>
       2:   AllowOverride None
        : </Directory>
       7: <VirtualHost 144.x.x.x:80>
       8:   DocumentRoot /var/www/meineseite/web
      10:   ServerName meineseite
      11:   ServerAdmin webmaster@meineseite
      13:   ErrorLog /var/log/ispconfig/httpd/meineseite/error.log
      16:   ErrorDocument 400 /error/400.html
      17:   ErrorDocument 401 /error/401.html
      18:   ErrorDocument 403 /error/403.html
      19:   ErrorDocument 404 /error/404.html
      20:   ErrorDocument 405 /error/405.html
      21:   ErrorDocument 500 /error/500.html
      22:   ErrorDocument 502 /error/502.html
      23:   ErrorDocument 503 /error/503.html
      28:   <Directory /var/www/meineseite/web>
      29:     Options FollowSymLinks
      30:     AllowOverride All
        :   </Directory>
      34:   <Directory /var/www/clients/client1/web17/web>
      35:     Options FollowSymLinks
      36:     AllowOverride All
        :   </Directory>
      49:   <FilesMatch "\.ph(p3?|tml)$">
      50:     SetHandler None
        :   </FilesMatch>
      64:   <Directory /var/www/meineseite/web>
      67:     Options +ExecCGI
      68:     AllowOverride All
        :   </Directory>
      72:   <Directory /var/www/clients/client1/web17/web>
      75:     Options +ExecCGI
      76:     AllowOverride All
        :   </Directory>
        : </VirtualHost>
     118: <VirtualHost 144.x.x.x:443>
     119:   DocumentRoot /var/www/meineseite/web
     121:   ServerName meineseite
     122:   ServerAdmin webmaster@meineseite
     124:   ErrorLog /var/log/ispconfig/httpd/meineseite/error.log
     127:   ErrorDocument 400 /error/400.html
     128:   ErrorDocument 401 /error/401.html
     129:   ErrorDocument 403 /error/403.html
     130:   ErrorDocument 404 /error/404.html
     131:   ErrorDocument 405 /error/405.html
     132:   ErrorDocument 500 /error/500.html
     133:   ErrorDocument 502 /error/502.html
     134:   ErrorDocument 503 /error/503.html
     143:   <Directory /var/www/meineseite/web>
     144:     Options FollowSymLinks
     145:     AllowOverride All
        :   </Directory>
     149:   <Directory /var/www/clients/client1/web17/web>
     150:     Options FollowSymLinks
     151:     AllowOverride All
        :   </Directory>
     164:   <FilesMatch "\.ph(p3?|tml)$">
     165:     SetHandler None
        :   </FilesMatch>
     179:   <Directory /var/www/meineseite/web>
     182:     Options +ExecCGI
     183:     AllowOverride All
        :   </Directory>
     187:   <Directory /var/www/clients/client1/web17/web>
     190:     Options +ExecCGI
     191:     AllowOverride All
        :   </Directory>
        : </VirtualHost>
     233: <VirtualHost [2a01:x:x:x::x]:80>
     234:   DocumentRoot /var/www/meineseite/web
     236:   ServerName meineseite
     237:   ServerAdmin webmaster@meineseite
     239:   ErrorLog /var/log/ispconfig/httpd/meineseite/error.log
     242:   ErrorDocument 400 /error/400.html
     243:   ErrorDocument 401 /error/401.html
     244:   ErrorDocument 403 /error/403.html
     245:   ErrorDocument 404 /error/404.html
     246:   ErrorDocument 405 /error/405.html
     247:   ErrorDocument 500 /error/500.html
     248:   ErrorDocument 502 /error/502.html
     249:   ErrorDocument 503 /error/503.html
     254:   <Directory /var/www/meineseite/web>
     255:     Options FollowSymLinks
     256:     AllowOverride All
        :   </Directory>
     260:   <Directory /var/www/clients/client1/web17/web>
     261:     Options FollowSymLinks
     262:     AllowOverride All
        :   </Directory>
     275:   <FilesMatch "\.ph(p3?|tml)$">
     276:     SetHandler None
        :   </FilesMatch>
     290:   <Directory /var/www/meineseite/web>
     293:     Options +ExecCGI
     294:     AllowOverride All
        :   </Directory>
     298:   <Directory /var/www/clients/client1/web17/web>
     301:     Options +ExecCGI
     302:     AllowOverride All
        :   </Directory>
        : </VirtualHost>
     344: <VirtualHost [2a01:x:x:x::x]:443>
     345:   DocumentRoot /var/www/meineseite/web
     347:   ServerName meineseite
     348:   ServerAdmin webmaster@meineseite
     350:   ErrorLog /var/log/ispconfig/httpd/meineseite/error.log
     353:   ErrorDocument 400 /error/400.html
     354:   ErrorDocument 401 /error/401.html
     355:   ErrorDocument 403 /error/403.html
     356:   ErrorDocument 404 /error/404.html
     357:   ErrorDocument 405 /error/405.html
     358:   ErrorDocument 500 /error/500.html
     359:   ErrorDocument 502 /error/502.html
     360:   ErrorDocument 503 /error/503.html
     369:   <Directory /var/www/meineseite/web>
     370:     Options FollowSymLinks
     371:     AllowOverride All
        :   </Directory>
     375:   <Directory /var/www/clients/client1/web17/web>
     376:     Options FollowSymLinks
     377:     AllowOverride All
        :   </Directory>
     390:   <FilesMatch "\.ph(p3?|tml)$">
     391:     SetHandler None
        :   </FilesMatch>
     405:   <Directory /var/www/meineseite/web>
     408:     Options +ExecCGI
     409:     AllowOverride All
        :   </Directory>
     413:   <Directory /var/www/clients/client1/web17/web>
     416:     Options +ExecCGI
     417:     AllowOverride All
        :   </Directory>
        : </VirtualHost>
 

Werbung

Top