[Opgelost ]
door gebruik van Fail2ban Inplaats van Require Command
Mijn vraag
die gaat over .htaccess File Ik wilde een Custom maken zodat
(eerst werkte het maar toen ik later de custom teplates gebruikte voor ;page 404;
doen werkte het niet meer
En zelf hat ik geen idee hoe het werkt omdat ik apache bijna nooit gebruik
en omdat .htaccess best oud is.
Op het raspberry form was fail2ban mij aangerden
Relevante software en hardware die ik gebruik
(apache2.4.25)
(raspbarry) b + 2015
/etc/apache2/sites-available $ sudo nano 000-default.conf
------------------------------------------------------------
/var/www/html (.htaccess file )
----------------------------------------------------------
Wat ik al gevonden of geprobeerd heb
https://httpd.apache.org/docs/2.4/howto/access.html
https://htaccessbook.com/access-control-apache-2-4/
https://www.linode.com/do...et-up-htaccess-on-apache/
door gebruik van Fail2ban Inplaats van Require Command
Mijn vraag
die gaat over .htaccess File Ik wilde een Custom maken zodat
(eerst werkte het maar toen ik later de custom teplates gebruikte voor ;page 404;
doen werkte het niet meer
En zelf hat ik geen idee hoe het werkt omdat ik apache bijna nooit gebruik
en omdat .htaccess best oud is.
Op het raspberry form was fail2ban mij aangerden
Relevante software en hardware die ik gebruik
(apache2.4.25)
(raspbarry) b + 2015
/etc/apache2/sites-available $ sudo nano 000-default.conf
code:
1
2
3
4
5
6
| </VirtualHost> <Directory /var/www/html> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory> |
------------------------------------------------------------
/var/www/html (.htaccess file )
code:
1
2
3
4
5
6
7
8
9
10
| ErrorDocument 404 /404.html ErrorDocument 403 /403.html ErrorDocument 500 /500.html <RequireAll> Require all denied Require not ip 185.212.171.8 Require ip 192.168.178.20 Require ip 245.13.67.123 </RequireAll> |
----------------------------------------------------------
Wat ik al gevonden of geprobeerd heb
https://httpd.apache.org/docs/2.4/howto/access.html
https://htaccessbook.com/access-control-apache-2-4/
https://www.linode.com/do...et-up-htaccess-on-apache/
[ Voor 15% gewijzigd door xX584MeadowXx op 07-05-2019 21:17 . Reden: Opgelost ]