This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision |
rpi_nimbus [2019/04/14 14:22] – [Activate gzip module] Júne Park | rpi_nimbus [2019/05/22 16:59] – [+Work logs] Júne Park |
---|
==== +Work logs ==== | ==== +Work logs ==== |
| |
| * ''Renew SSL certificates'' {{fa>certificate}} ((Let's Encrypt) done <sub> --- Updated on //2019/05/23 01:57// </sub> |
* ''Renew SSL certificates'' (Let's Encrypt) done <sub> --- Updated on //2019/03/13 20:08//</sub> | * ''Renew SSL certificates'' (Let's Encrypt) done <sub> --- Updated on //2019/03/13 20:08//</sub> |
* ''configure'' access.log and error.log separately <sub> --- Updated on //2018/09/20 11:12//</sub> | * ''configure'' access.log and error.log separately <sub> --- Updated on //2018/09/20 11:12//</sub> |
| |
---- | ---- |
==== Exclude logging ==== | |
| |
Add ''map'' in Nginx configuration files, | |
| |
Exclude logging from specific IP | |
| |
<code nginx> | |
map $remote_addr $log_ip { | |
| |
"127.0.0.1" 0; | |
"10.0.0.2" 0; | |
"10.0.0.3" 0; | |
| |
default 1; | |
| |
} | |
</code> | |
| |
Exclude logging from specific User-Agent | |
| |
<code nginx> | |
map $http_user_agent $log_ua { | |
| |
~Pingdom 0; | |
~Googlebot 0; | |
~Baiduspider 0; | |
| |
default 1; | |
} | |
</code> | |
| |
---- | |
==== Known Problems ==== | ==== Known Problems ==== |
| |
<text type="danger">{{fa>bug}} **Symptom**</text>: No symptom while running website. Only found in error log. | <text type="danger">{{fa>bug}} **Symptom**</text>: No symptom while running website. Only found in error log. |
| |
<text type="info">{{fa>lightbulb-o}} **Solution**</text>: | <text type="info">{{fa>lightbulb-o}} **Solution**</text>: [[https://www.digitalocean.com/community/questions/nginx-error-111-connection-refused|Solution #1]] |
| |
---- | ---- |
<text type="danger">{{fa>bug}} **Symptom**</text>: No symptom while running website. Only found in error log. | <text type="danger">{{fa>bug}} **Symptom**</text>: No symptom while running website. Only found in error log. |
| |
<text type="info">{{fa>lightbulb-o}} **Solution**</text>: | <text type="info">{{fa>lightbulb-o}} **Solution**</text>: |
| |
| |