Appendix |
location /connect/ { alias C:/Shares/connect-sdk/; expires 1d; }Add the above code to the server section:
server { listen 8080; rewrite ^ https://$host:443$request_uri? permanent; } server { listen 443; root ../www/public; error_page 500 502 503 504 /500.html; error_page 413 /413.html; add_header X-Frame-Options SAMEORIGIN; ssl on; ssl_certificate cert.pem; ssl_certificate_key cert.key; ssl_session_timeout 5m; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS; ssl_prefer_server_ciphers on; location / { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_set_header X-Forwarded-Proto https; proxy_set_header Client-Ip $remote_addr; proxy_redirect off; proxy_pass http://web-servers; proxy_connect_timeout 10; } location ~ ^/(assets|images|javascripts|stylesheets|swfs|system)/ { expires max; add_header Cache-Control public; } location /connect/ { alias C:/Shares/connect-sdk/; expires 1d; } } }
Change the following line to one of the two options below:
- connect_autoinstall_location = '//d3gcli72yxqn2z.cloudfront.net/connect/v4'
- connect_autoinstall_location = "//#{ request.host_with_port }/connect/v4"
- connect_autoinstall_location = '//shares.example.com/connect/v4'(Where shares.example.com is the FQDN of the Shares server.)