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 [2019/01/22 10:43] – [Apache 2.2 VirtualHost con PHP5 FastCGI e suEXEC] niccolo | doc:appunti:linux:sa:apache [2020/12/09 19:11] – [Apache 2.4 VirtualHost con php-fpm 7.0] 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 277: | Line 279: | ||
| | ||
| | ||
- | | + | |
</ | </ | ||
</ | </ | ||
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 ===== | ||
Line 503: | Line 532: | ||
pm.min_spare_servers = 1 | pm.min_spare_servers = 1 | ||
pm.max_spare_servers = 3 | pm.max_spare_servers = 3 | ||
+ | |||
+ | ; | ||
+ | ; | ||
+ | ; | ||
</ | </ | ||
+ | |||
+ | Nell' | ||
Nella configurazione del VirtualHost si dichiara quale pool sarà usato: | Nella configurazione del VirtualHost si dichiara quale pool sarà usato: |
doc/appunti/linux/sa/apache.txt · Last modified: 2021/12/03 10:08 by niccolo