doc:appunti:linux:sa:apache
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
doc:appunti:linux:sa:apache [2020/04/24 18:07] – [Autenticazione su /etc/shadow] niccolo | doc:appunti:linux:sa:apache [2020/04/24 18:21] – [Verifica combinata username o indirizzo IP] niccolo | ||
---|---|---|---|
Line 134: | Line 134: | ||
AuthType Basic | AuthType Basic | ||
AuthName "Area protetta" | AuthName "Area protetta" | ||
+ | AuthBasicProvider file | ||
AuthUserFile / | AuthUserFile / | ||
+ | #Require user username1 username2 | ||
Require valid-user | Require valid-user | ||
</ | </ | ||
Line 318: | Line 320: | ||
^ Allow from 10.1.0.0/ | ^ Allow from 10.1.0.0/ | ||
^ Allow from 10.1.0.0/ | ^ Allow from 10.1.0.0/ | ||
+ | |||
+ | ===== Verifica combinata username o indirizzo IP ===== | ||
+ | |||
+ | Con questa configurazione di **Apache 2.4** si consente l' | ||
+ | |||
+ | < | ||
+ | < | ||
+ | SSLRequireSSL | ||
+ | # Athenticate on htpasswd file. | ||
+ | AuthType Basic | ||
+ | AuthName "Area privata" | ||
+ | AuthBasicProvider file | ||
+ | AuthUserFile / | ||
+ | < | ||
+ | Require user niccolo | ||
+ | Require ip 127.0.0.0/8 ::1 192.168.3.2 | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | Se si opta per la configurazione tramite file **.htaccess**, | ||
+ | |||
+ | < | ||
+ | < | ||
+ | AllowOverride AuthConfig Limit | ||
+ | </ | ||
+ | </ | ||
===== Logging degli errori PHP ===== | ===== Logging degli errori PHP ===== |
doc/appunti/linux/sa/apache.txt · Last modified: 2021/12/03 10:08 by niccolo