Created
September 25, 2017 11:31
-
-
Save notgosu/e29f23474a56476dfa33a9f51e26db6a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user www-data; | |
worker_processes auto; | |
pid /run/nginx.pid; | |
events { | |
worker_connections 768; | |
# multi_accept on; | |
} | |
http { | |
## | |
# Basic Settings | |
## | |
sendfile on; | |
tcp_nopush on; | |
tcp_nodelay on; | |
keepalive_timeout 65; | |
types_hash_max_size 2048; | |
# server_tokens off; | |
fastcgi_read_timeout 300; | |
# server_names_hash_max_size 1024; | |
server_names_hash_bucket_size 128; | |
# server_name_in_redirect off; | |
include /etc/nginx/mime.types; | |
default_type application/octet-stream; | |
## | |
# SSL Settings | |
## | |
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE | |
ssl_prefer_server_ciphers on; | |
## | |
# Logging Settings | |
## | |
access_log /var/log/nginx/access.log; | |
error_log /var/log/nginx/error.log; | |
## | |
# Gzip Settings | |
## | |
gzip on; | |
gzip_disable "msie6"; | |
gzip_vary on; | |
gzip_proxied any; | |
gzip_comp_level 5; | |
gzip_min_length 256; | |
gzip_types | |
application/atom+xml | |
application/javascript | |
application/x-javascript | |
application/json | |
application/rss+xml | |
application/vnd.ms-fontobject | |
application/x-font-ttf | |
application/x-web-app-manifest+json | |
application/xhtml+xml | |
application/xml | |
font/opentype | |
image/svg+xml | |
image/x-icon | |
text/css | |
text/plain | |
text/x-component | |
text/javasscript; | |
## | |
# Virtual Host Configs | |
## | |
include /etc/nginx/conf.d/*.conf; | |
include /etc/nginx/sites-enabled/*; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
upstream backend_donbasener.com {server unix:/var/run/php7.0-donbasener.com.sock;} | |
server { | |
listen 80; | |
server_name front.donbasener.com.dev11.vintagedev.com.ua donbasener.com www.donbasener.com; | |
root /home/donbas/donbasener.com/front; | |
access_log /home/donbas/log/donbasener.com.access.log; | |
error_log /home/donbas/log/donbasener.com.error.log; | |
index index.php; | |
rewrite_log on; | |
client_max_body_size 100M; | |
location / { | |
try_files $uri $uri/ /index.php?$args; | |
} | |
location ~ \.php$ { | |
try_files $uri =404; | |
fastcgi_split_path_info ^(.+\.php)(/.+)$; | |
fastcgi_index index.php; | |
include fastcgi_params; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
fastcgi_pass backend_donbasener.com; | |
} | |
location = /favicon.ico { allow all; access_log off; log_not_found off; } | |
location = /apple-touch-icon.png { allow all; access_log off; log_not_found off; } | |
location = /apple-touch-icon-precomposed.png { allow all; access_log off; log_not_found off; } | |
location ~ /.tmb { allow all;} | |
location ~ /\. { access_log off; log_not_found off; deny all; } | |
location ~ ~$ { access_log off; log_not_found off; deny all; } | |
} | |
server { | |
listen 80; | |
server_name back.donbasener.com.dev11.vintagedev.com.ua back.donbasener.com; | |
root /home/donbas/donbasener.com/back; | |
access_log /home/donbas/log/donbasener.com.back-access.log; | |
error_log /home/donbas/log/donbasener.com.back-error.log; | |
index index.php; | |
rewrite_log on; | |
client_max_body_size 100M; | |
location / { | |
try_files $uri $uri/ /index.php?$args; | |
} | |
location ~ \.php$ { | |
try_files $uri =404; | |
fastcgi_split_path_info ^(.+\.php)(/.+)$; | |
fastcgi_index index.php; | |
include fastcgi_params; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
fastcgi_pass backend_donbasener.com; | |
} | |
location = /favicon.ico { allow all; access_log off; log_not_found off; } | |
location = /apple-touch-icon.png { allow all; access_log off; log_not_found off; } | |
location = /apple-touch-icon-precomposed.png { allow all; access_log off; log_not_found off; } | |
location ~ /.tmb { allow all;} | |
location ~ /\. { access_log off; log_not_found off; deny all; } | |
location ~ ~$ { access_log off; log_not_found off; deny all; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment