marabunta
Goto Top

QNAP apcache.conf Zugriff auf phpMyAdmin einschränken

Hallo,

bisher hat es nur geklappt, den Zugriff komplett einzuschränken oder für alle verfügbar zu machen.
Natürlich soll es vom internen Netz möglich sein, aber aus dem Internet sollte die Seite nicht erreicht werden können.
Wie stelle ich das richtig ein?

Hier ein Teil des ganzen:
[~] #  cat /etc/config/apache/apache.conf
#ServerType standalone
ServerRoot "/usr/local/apache"  
Mutex file:/var/lock/ default
PidFile /var/lock/apache.pid
DocumentRoot "/share/Web"  
<Directory />
        Options FollowSymLinks
        AllowOverride None
        Require all denied
</Directory>
<Directory "/share/Web">  
        Options FollowSymLinks MultiViews
        AllowOverride All
        Require all granted
</Directory>
<Directory "/share/Web/phpMyAdmin">  
        Options FollowSymLinks MultiViews
        Order Deny,Allow
        Require all denied
        Allow from 192.168.1.0/24
        Allow from 192.168.178.0/24
        Satisfy All
        Require all granted
</Directory>
Include /etc/config/apache/extra/apache-default-modules.conf
<IfModule headers_module>
        Header always append X-Frame-Options SAMEORIGIN "env=!share-iframe"  
        Header always edit Set-Cookie ^(.*)$ $1;HttpOnly
</IfModule>
<IfModule dir_module>
                DirectoryIndex index.html index.htm index.php
</IfModule>
AccessFileName .htaccess
<FilesMatch "^\.ht">  
    Require all denied
    Satisfy All
</FilesMatch>
UseCanonicalName Off
HostnameLookups Off
<Directory "/usr/local/apache/cgi-bin">  
    AllowOverride None
    Options None
    Require all granted
</Directory>
ErrorLog /dev/null
[~] #

Vielen Dank.

MfG

Content-Key: 478905

Url: https://administrator.de/contentid/478905

Printed on: April 25, 2024 at 01:04 o'clock

Member: NordicMike
NordicMike Jul 28, 2019 at 08:40:53 (UTC)
Goto Top
Ohne nachzuprüfen: Zeile 24 löschen. In Zeile 20 wird bereits deklariert, dass sonst niemand darf.