Posts

Showing posts with the label nginx

Nginx-How to config proxy_pass to https

  proxy_pass https://ltv-timesheet-sync.line-apps-beta.com/ ; proxy_ssl_server_name on; proxy_http_version 1.1;

Config nginx to read local index.html and return to clients

  http {     include       mime.types;     default_type   application/octet-stream;     #access_log   logs/access.log   main;     sendfile         on;     #tcp_nopush     on;     #keepalive_timeout   0;     keepalive_timeout   65;     #gzip   on;     server {         listen       80 default_server;         server_name   _;         #charset koi8-r;         #access_log   logs/host.access.log   main;         location   ~ \.(html|css|js)(.*)$ {             root /home/www/html;             index   index.html index.htm;         }      } }