Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##nginx.conf
- http {
- log_format main '$remote_addr - $remote_user [$time_local] "$request" '
- '$status $body_bytes_sent "$http_referer" '
- '"$http_user_agent" "$http_x_forwarded_for"';
- access_log /var/log/nginx/access.log main;
- sendfile on;
- tcp_nopush on;
- tcp_nodelay on;
- keepalive_timeout 65;
- types_hash_max_size 2048;
- types_hash_bucket_size 64;
- include /etc/nginx/mime.types;
- default_type application/octet-stream;
- # Load modular configuration files from the /etc/nginx/conf.d directory.
- # See http://nginx.org/en/docs/ngx_core_module.html#include
- # for more information.
- include /etc/nginx/conf.d/*.conf;
- server {
- listen 80 default_server;
- listen [::]:80 default_server;
- server_name _;
- return 301 https://$host$request_uri;
- }
- }
- ##example.conf
- server {
- listen 443 http2;
- # listen [::]:801 http ssl;
- server_name bigbills1.com www.bigbills1.com;
- root /usr/share/nginx/example/bigbills/html;
- # ssl_certificate_key /etc/nginx/ssl/priv/nginx_key.key;
- # ssl_certificate /etc/nginx/ssl/certs/nginx_cert.crt;
- # ssl_dhparam /etc/nginx/ssl/certs/dhparam.pem;
- index index.html;
- # Load configuration files for the default server block.
- location / {
- }
- location ~* \.php$ {
- include fastcgi_params;
- # fastcgi_index index.php;
- include /etc/nginx/default.d/php_param.conf;
- fastcgi_pass unix:/run/php-fpm/www.sock;
- }
- error_page 404 /404.html;
- location = /40x.html {
- }
- error_page 500 502 503 504 /50x.html;
- location = /50x.html {
- }
- }
- ##bigbills.conf
- server {
- listen 443 http2 ssl;
- # listen [::]:443 http2 ssl;
- server_name bigbills2.com www.bigbills2.com;
- root /usr/share/nginx/bigbills/html;
- ssl_certificate_key /etc/nginx/ssl/priv/nginx_key.key;
- ssl_certificate /etc/nginx/ssl/certs/nginx_cert.crt;
- ssl_dhparam /etc/nginx/ssl/certs/dhparam.pem;
- index index.html;
- # Load configuration files for the default server block.
- location / {
- }
- location ~* \.php$ {
- include fastcgi_params;
- # fastcgi_index index.php;
- include /etc/nginx/default.d/php_param.conf;
- fastcgi_pass unix:/run/php-fpm/www.sock;
- }
- error_page 404 /404.html;
- location = /40x.html {
- }
- error_page 500 502 503 504 /50x.html;
- location = /50x.html {
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement