hulp met de access file Apache2

Pagina: 1
Acties:

Vraag


Acties:
  • 0 Henk 'm!

  • xX584MeadowXx
  • Registratie: December 2018
  • Laatst online: 13-09-2021
[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
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 ]

Alle reacties


Acties:
  • 0 Henk 'm!

  • Donaldinho
  • Registratie: November 2002
  • Laatst online: 05-10 09:32
Wat is de foutmelding die je krijgt in de browser? Wat zie je in je error.log, waarom require all denied in de eerste config regel?

You almost can’t blame him or the other diet gurus for leaning in on the techno-bullshit market; it’s hard to fill up a 300 page diet book on “eat a bit less and find a type of exercise that doesn’t make you hate life.”


Acties:
  • 0 Henk 'm!

  • xX584MeadowXx
  • Registratie: December 2018
  • Laatst online: 13-09-2021
Niks in Browers ( alleen dat ik De oude template krijg te zien
+ weet niet hoe ik dit moet instellen in .htaccess

Sun May 05 16:42:06.128430 2019] [core:notice] [pid 2685] AH00094: Command line: '/usr/sbin/apache$
[Sun May 05 18:42:29.172608 2019] [mpm_prefork:notice] [pid 2685] AH00171: Graceful restart request$
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.$
[Sun May 05 18:42:29.279864 2019] [mpm_prefork:notice] [pid 2685] AH00163: Apache/2.4.25 (Raspbian)$
[Sun May 05 18:42:29.279936 2019] [core:notice] [pid 2685] AH00094: Command line: '/usr/sbin/apache$

Acties:
  • 0 Henk 'm!

  • MueR
  • Registratie: Januari 2004
  • Laatst online: 00:09

MueR

Admin Tweakers Discord

is niet lief

Je htaccess lijkt een beetje incompleet. Sowieso wil je een <Directory> waarschijnlijk binnen je <VirtualHost> block hebben, nu staat het er buiten.

Anyone who gets in between me and my morning coffee should be insecure.


Acties:
  • +2 Henk 'm!

  • Tsjilp
  • Registratie: November 2002
  • Niet online

Tsjilp

RS[I]ds

Regel 9 hoort daar ook niet thuis lijkt me...

Raar... Is zo gek nog niet


Acties:
  • 0 Henk 'm!

  • xX584MeadowXx
  • Registratie: December 2018
  • Laatst online: 13-09-2021
Ik heb mijn topi aangepast
PROBLEEM OPGELOST
heb een programma genaamd Fail2bad geinstallerd waardoor de ovige commands niet meer nodig waren.

[ Voor 69% gewijzigd door xX584MeadowXx op 07-05-2019 21:15 . Reden: PRObLEEM OPGELOST ]

Pagina: 1