SHARE
TWEET

Untitled

a guest Apr 25th, 2019 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ##nginx.conf
  2.  
  3. http {
  4.     log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
  5.                       '$status $body_bytes_sent "$http_referer" '
  6.                       '"$http_user_agent" "$http_x_forwarded_for"';
  7.  
  8.     access_log  /var/log/nginx/access.log  main;
  9.  
  10.     sendfile            on;
  11.     tcp_nopush          on;
  12.     tcp_nodelay         on;
  13.     keepalive_timeout   65;
  14.     types_hash_max_size 2048;
  15.     types_hash_bucket_size 64;
  16.  
  17.     include             /etc/nginx/mime.types;
  18.     default_type        application/octet-stream;
  19.  
  20.     # Load modular configuration files from the /etc/nginx/conf.d directory.
  21.     # See http://nginx.org/en/docs/ngx_core_module.html#include
  22.     # for more information.
  23.     include /etc/nginx/conf.d/*.conf;
  24.  
  25.         server {
  26.         listen 80 default_server;
  27.         listen [::]:80 default_server;
  28.         server_name _;
  29.         return 301 https://$host$request_uri;
  30. }
  31.  
  32.  }
  33.  
  34.  
  35.  
  36. ##example.conf
  37.  
  38.    server {
  39.         listen       443 http2;
  40. #        listen       [::]:801 http ssl;
  41.         server_name  bigbills1.com www.bigbills1.com;
  42.         root         /usr/share/nginx/example/bigbills/html;
  43.  
  44. #       ssl_certificate_key     /etc/nginx/ssl/priv/nginx_key.key;
  45. #       ssl_certificate         /etc/nginx/ssl/certs/nginx_cert.crt;
  46. #       ssl_dhparam             /etc/nginx/ssl/certs/dhparam.pem;
  47.  
  48.  
  49.  
  50.         index index.html;
  51.         # Load configuration files for the default server block.
  52.  
  53.         location / {
  54.         }
  55.  
  56.         location ~* \.php$ {
  57.  
  58.         include fastcgi_params;
  59. #        fastcgi_index index.php;
  60.         include /etc/nginx/default.d/php_param.conf;
  61.         fastcgi_pass unix:/run/php-fpm/www.sock;
  62.         }
  63.  
  64.         error_page 404 /404.html;
  65.             location = /40x.html {
  66.         }
  67.  
  68.         error_page 500 502 503 504 /50x.html;
  69.             location = /50x.html {
  70.         }
  71.  
  72. }
  73.  
  74.  
  75.  
  76. ##bigbills.conf
  77.  
  78. server {
  79.         listen       443 http2 ssl;
  80. #       listen       [::]:443 http2 ssl;
  81.         server_name  bigbills2.com www.bigbills2.com;
  82.         root         /usr/share/nginx/bigbills/html;
  83.  
  84.         ssl_certificate_key     /etc/nginx/ssl/priv/nginx_key.key;
  85.         ssl_certificate         /etc/nginx/ssl/certs/nginx_cert.crt;
  86.         ssl_dhparam             /etc/nginx/ssl/certs/dhparam.pem;
  87.  
  88.  
  89.  
  90.         index index.html;
  91.         # Load configuration files for the default server block.
  92.  
  93.         location / {
  94.         }
  95.  
  96.         location ~* \.php$ {
  97.  
  98.         include fastcgi_params;
  99. #        fastcgi_index index.php;
  100.         include /etc/nginx/default.d/php_param.conf;
  101.         fastcgi_pass unix:/run/php-fpm/www.sock;
  102.         }
  103.  
  104.         error_page 404 /404.html;
  105.             location = /40x.html {
  106.         }
  107.  
  108.         error_page 500 502 503 504 /50x.html;
  109.             location = /50x.html {
  110.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top