nginx
plain text/index/debug
https://www.nginx.com/resources/wiki/start/topics/examples/full/
worker_processes 5; ## Default: 1
location /code/ {
location ~* { # All files in it
add_header Content-Type text/plain; # Display file as text
}
}
location /sub_dir {
autoindex on; # list dir files
autoindex_exact_size off;
charset utf-8;
root /root_path
error_log /var/logs/nginx/debug.log debug; # Debug
# debug, info, notice, warn, error, crit, alert, or emerg
}Forward Proxy
https://www.alibabacloud.com/blog/how-to-use-nginx-as-an-https-forward-proxy-server_595799
Reverse Proxy
http://nginx.org/en/docs/http/ngx_http_upstream_hc_module.html
Nginx health checks is available as part of commercial subscription.
For Google
https://github.com/bohanyang/onemirror OneMirror is a Docker image of Nginx, which already configured Google Search, Google Fonts and Gravatar proxy.
Last updated
Was this helpful?