drwxr-xr-x. 5 root root 4096 Jun 29 2017 .
drwxr-xr-x. 97 root root 12288 Jun 24 03:08 ..
drwxr-xr-x. 6 root root 4096 Apr 28 2017 bx
drwxr-xr-x. 2 root root 4096 Aug 31 2014 conf.d
-rw-r--r--. 1 root root 964 Apr 25 2014 fastcgi_params
-rw-r--r--. 1 root root 2837 Apr 25 2014 koi-utf
-rw-r--r--. 1 root root 2223 Apr 25 2014 koi-win
-rw-r--r--. 1 root root 3731 Aug 31 2014 mime.types
-rw-r--r--. 1 root root 3736 Aug 31 2014 mime.types.bak
-rw-r--r-- 1 root root 2354 Jun 28 15:59 nginx.conf
-rw-r--r--. 1 root root 643 Nov 19 2013 nginx.conf.ori.1409518443
-rw-r--r-- 1 bitrix root 28625973356 Jun 20 00:43 on
-rw-r--r--. 1 root root 8224 Aug 18 2014 openssl.cnf
-rw-r--r--. 1 root root 596 Apr 25 2014 scgi_params
drwxr-xr-x. 2 root root 4096 Aug 31 2014 ssl
-rw-r--r--. 1 root root 623 Apr 25 2014 uwsgi_params
-rw-r--r--. 1 root root 3610 Apr 25 2014 win-utf
user bitrix;
worker_processes 10;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
worker_rlimit_nofile 10240;
events {
use epoll;
worker_connections 40;
}
http {
include /etc/nginx/mime.types;
default_type application/force-download;
server_names_hash_bucket_size 128;
# Description of supported access log formats
log_format main '$remote_addr - $remote_user [$time_local - $upstream_response_time] '
'$status "$request" $body_bytes_sent '
'"$http_referer" "$http_user_agent" "$http_x_forwarded_for"';
log_format common '$remote_addr - - [$time_local - $upstream_response_time] '
'"$request" $status $bytes_sent '
'"$http_referer" "$http_user_agent" $msec';
log_format balancer '$remote_addr - $remote_user [$time_iso8601] "$host" '
'"$request" $status $body_bytes_sent "schema: $scheme" '
'"$http_referer" "$http_user_agent" "$http_x_forwarded_for" '
'"$request_length" : "$request_time" -> $upstream_response_time';
log_format debug '$upstream_response_time,"$time_local","$remote_addr","$request",$status,$body_bytes_sent';
# Disable request logging in nginx by default
access_log /var/log/nginx/access.log common;
access_log off;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
client_max_body_size 1024M;
client_body_buffer_size 4M;
# Parameters for back-end request proxy
proxy_connect_timeout 300;
proxy_send_timeout 300;
proxy_read_timeout 300;
proxy_buffer_size 64k;
proxy_buffers 8 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 10m;
keepalive_timeout 30;
keepalive_requests 1000;
reset_timedout_connection on;
# Assign default error handlers
error_page 500 502 503 504 /500.html;
error_page 404 = /404.html;
# Content compression parameters
gzip off;
gzip_proxied any;
gzip_static off;
gzip_http_version 1.0;
gzip_types application/x-javascript text/css;
add_header Access-Control-Allow-Origin *;
add_header X-Content-Type-Options nosniff;
#add_header X-Frame-Options SAMEORIGIN;
# Set nginx-push-stream-module common parameters
include bx/conf/im_settings.conf;
# Set default website
include bx/site_enabled/*.conf;
# Set additional websites
include bx/site_ext_enabled/*.conf;
}
NameVirtualHost 127.1.1.9:80
<VirtualHost 127.1.1.9:80>
ServerName domen1.ru
DocumentRoot /var/www/domen1.ru
</VirtualHost>
<VirtualHost 127.1.1.9:80>
ServerName domen2.ru
DocumentRoot /var/www/html
redirect / https://domen2.ru
</VirtualHost>
<VirtualHost 127.1.1.9:443>
ServerName domen2.ru
DocumentRoot /var/www/html
SSLEngine on
SSLCertificateFile /etc/pki/tls/certs/domen2_ru.crt
SSLCertificateKeyFile /etc/pki/tls/private/ca.key
</VirtualHost>