openssl dhparam -out /etc/pki/nginx/dhparam.pem 4096
- upstream backend {
- # Адрес back-end'a
- server 192.168.0.2:8888;
- }
-
- server {
-
- listen 80; ## listen for ipv4
- listen [::]:80 default ipv6only=on; ## listen for ipv6
-
- server_name www.ts.our ts.our;
-
- access_log /var/www/ts/logs/ts.access.log;
- error_log /var/www/ts/logs/ts.error.log;
-
- location / {
- access_log /var/www/ts/logs/ts_root;
- proxy_pass http://192.168.0.2:8888;
- include /etc/nginx/proxy.conf;
- }
-
- location /doc {
- access_log /var/www/ts/logs/ts_doc;
- rewrite ^/doc(/.*)?$ /javadoc$1;
- root /var/www/ts/core/docs/;
- index index.html;
- }
-
- location /javadoc {
- access_log /var/www/ts/logs/ts_jdoc;
- root /var/www/ts/core/docs/;
- index index.html;
- }
-
- # Статическиое наполнение отдает сам nginx
- # back-end этим заниматься не должен
- location ^~ /cssimages/ {
- access_log /var/www/ts/logs/ts_css;
- root /var/www/ts/core/webapps/TrackStudio/;
- expires max;
- }
-
- location ^~ /icons/categories/ {
- access_log /var/www/ts/logs/ts_cat;
- root /var/www/ts/core/etc/plugins/;
- expires max;
- }
-
- location ^~ /style/ {
- access_log /var/www/ts/logs/ts_st;
- root /var/www/ts/core/webapps/TrackStudio/;
- }
-
- location ^~ /jquery/ {
- access_log /var/www/ts/logs/ts_jq;
- root /var/www/ts/core/webapps/TrackStudio/;
- }
- }
-
- # HTTPS server#
- server {
- listen 443;
- server_name www.ts.our ts.our;
-
- location / {
- proxy_pass https://192.168.100.60:8433;
- include /etc/nginx/proxy.conf;
- }
- }
- proxy_redirect off;
- proxy_set_header Host $host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- client_max_body_size 10m;
- client_body_buffer_size 128k;
- proxy_connect_timeout 90;
- proxy_send_timeout 90;
- proxy_read_timeout 90;
- proxy_buffer_size 4k;
- proxy_buffers 4 32k;
- proxy_busy_buffers_size 64k;
- proxy_temp_file_write_size 64k;
<VirtualHost *:80>
ServerName ts.our
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass / http://192.168.0.2:8888/
ProxyPassReverse / http://192.168.0.2:8888/
ErrorLog /var/log/apache2/ts_error_log
CustomLog /var/log/apache2/ts_log common
</VirtualHost>
PDO::MYSQL_ATTR_MAX_BUFFER_SIZE=>1024*1024*50
,