# HTTPS server TEACHER.SEKOLAHDJUWITA.SCH.ID # server { listen 80; server_name teacher.sekolah-djuwita.com www.teacher.sekolah-djuwita.com; rewrite ^ https://$server_name$request_uri? permanent; } ###OUR HTTPS SERVER server { listen 443 spdy; server_name teacher.sekolah-djuwita.com www.teacher.sekolah-djuwita.com; ssl on; # ssl_certificate /zariah/ssl/teacher.crt; # ssl_certificate_key /zariah/ssl/teacher.key; ssl_certificate /var/ssl/server.crt; ssl_certificate_key /var/ssl/server.key; ssl_session_timeout 5m; ssl_protocols SSLv2 SSLv3 TLSv1; ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP; ssl_prefer_server_ciphers on; access_log /var/log/nginx/access.log; location / { add_header Front-End-Https on; # add_header Cache-Control "public, must-revalidate"; # add_header Strict-Transport-Security "max-age=25920000; includeSubdomains"; # root /zariah/www/teacher; root /var/www/teacher; index index.php index.html index.htm; } # Static files location location ~ \.php$ { fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_buffer_size 32k; fastcgi_buffers 1024 32k; fastcgi_param PATH_INFO $fastcgi_script_name; fastcgi_param SCRIPT_FILENAME /var/www/teacher$fastcgi_script_name; include fastcgi_params; ####include client_memory; proxy_buffering off; } include /etc/nginx/drop_conf; }