Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- server_name *.weconnect.com;
- return 301 https://$host$request_uri;
- }
- server {
- listen 443;
- server_name *.weconnect.com;
- ssl on;
- #ssl_certificate /data/ssl/weconnect/wildcard_weconnect_com.crt;
- #ssl_certificate_key /data/ssl/weconnect/wildcard_weconnect_com.key;
- #ssl_certificate /data/ssl/ssltest/full-bundle.pem;
- #ssl_certificate_key /data/ssl/ssltest/privkey1.pem;
- #ssl_certificate /data/ssl/qa-weconnect/wildcard_qa_weconnect_com.crt;
- #ssl_certificate_key /data/ssl/qa-weconnect/wildcard_qa_weconnect_com.key;
- ssl_certificate /data/ssl/weconnect/wildcard_weconnect_com.crt;
- ssl_certificate_key /data/ssl/weconnect/wildcard_weconnect_com.key;
- ssl_protocols TLSv1.1 TLSv1.2;
- ssl_prefer_server_ciphers on;
- #ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH";
- #ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
- #ssl_dhparam /opt/local/etc/nginx/ssl/dhparams.pem;
- ssl_ciphers HIGH:!aNULL:!MD;
- #ssl_ecdh_curve secp384r1;
- ssl_session_cache shared:SSL:10m;
- ssl_session_tickets off;
- # ssl_stapling on;
- # ssl_stapling_verify on;
- #set $APPLICATION_ENV "ssltest";
- set $APPLICATION_ENV "production";
- root /data/www/weconnect/public;
- access_log /data/log/nginx/weconnect.com.access.log combined;
- error_log /data/log/nginx/weconnect.com.error.log;
- # location / {
- # index index.php index.html index.htm;
- # try_files $uri $uri/ /index.php?$args;
- #
- # include /usr/local/etc/nginx/fastcgi_params;
- # fastcgi_pass unix:/var/run/php-fpm.sock;
- # fastcgi_read_timeout 1200;
- # }
- location / {
- index index.php;
- try_files $uri $uri/ /index.php?$query_string;
- # include /usr/local/etc/nginx/fastcgi_params;
- # fastcgi_pass unix:/var/run/php-fpm.sock;
- # fastcgi_read_timeout 1200;
- }
- # Be sure that local /photos directory is passed to php(1)
- location /photos {try_files $uri uri/ /index.php?$query_string;}
- location ~ \.php$ {
- #fastcgi_param APPLICATION_ENV "ssltest";
- fastcgi_param APPLICATION_ENV "production";
- fastcgi_pass unix:/var/run/php-fpm.sock;
- include /usr/local/etc/nginx/fastcgi_params;
- include fastcgi_params;
- fastcgi_read_timeout 900;
- fastcgi_split_path_info ^(.+\.php)(/.*)$;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_param SERVER_NAME $host;
- if (!-f $document_root$fastcgi_script_name) {
- return 404;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement