diff --git a/tms/nginx.conf b/tms/nginx.conf new file mode 100644 index 0000000000000000000000000000000000000000..efafba5395fd10babcf60734121e3a1e9851b30f --- /dev/null +++ b/tms/nginx.conf @@ -0,0 +1,32 @@ +user www-data; +worker_processes 4; +pid /run/nginx.pid; + +events { + worker_connections 2048; + multi_accept on; + use epoll; +} + +http { + server_tokens off; + sendfile on; + tcp_nopush on; + tcp_nodelay on; + keepalive_timeout 15; + types_hash_max_size 2048; + include /etc/nginx/mime.types; + default_type application/octet-stream; + access_log off; + error_log off; + gzip on; + gzip_disable "msie6"; + include /etc/nginx/conf.d/*.conf; + include /etc/nginx/sites-enabled/*; + open_file_cache max=100; + client_body_temp_path /tmp 1 2; + client_body_buffer_size 256k; + client_body_in_file_only off; +} + +daemon off; \ No newline at end of file diff --git a/tms/symfony.conf b/tms/symfony.conf new file mode 100644 index 0000000000000000000000000000000000000000..7039442280d3aaa584c0fb86ad4201750bd6fe02 --- /dev/null +++ b/tms/symfony.conf @@ -0,0 +1,25 @@ + +server { + server_name symfony.localhost; + root /var/www/html/tms/tms/public; + + + location / { + try_files $uri @rewriteapp; + } + + location @rewriteapp { + rewrite ^(.*)$ /index.php/$1 last; + } + + location ~ ^/index\.php(/|$) { + fastcgi_pass php-upstream; + fastcgi_split_path_info ^(.+\.php)(/.*)$; + include fastcgi_params; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + fastcgi_param HTTPS off; + } + + error_log /var/log/nginx/symfony_error.log; + access_log /var/log/nginx/symfony_access.log; +} \ No newline at end of file