Last active
August 29, 2015 14:12
-
-
Save codeablehq/664565233724f7f5417d to your computer and use it in GitHub Desktop.
WP-Kickstart Nginx configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
server_name www.wp-kickstart.com; | |
listen 443 ssl spdy; | |
# SSL configuration | |
ssl_certificate /home/webmaster/certs/wp-kickstart.com.crt; | |
ssl_certificate_key /home/webmaster/certs/wp-kickstart.com.key; | |
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | |
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA; | |
ssl_prefer_server_ciphers on; | |
ssl_session_cache shared:SSL:10m; | |
ssl_session_timeout 24h; | |
add_header Alternate-Protocol 443:npn-spdy/3; | |
spdy_keepalive_timeout 300; # up from 180 secs default | |
spdy_headers_comp 6; | |
root /home/webmaster/www/www.wp-kickstart.com; | |
index index.php index.html; | |
location / { | |
try_files $uri $uri/ /index.php?$args; | |
} | |
location ~ .php$ { | |
try_files $uri /index.php; | |
include fastcgi_params; | |
fastcgi_pass unix:/var/run/php5-fpm.sock; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
fastcgi_index index.php; | |
} | |
} | |
server { | |
listen 443; | |
server_name wp-kickstart.com; | |
return 301 https://www.wp-kickstart.com$request_uri; | |
} | |
server { | |
listen 80; | |
server_name www.wp-kickstart.com; | |
return 301 https://www.wp-kickstart.com$request_uri; | |
} | |
server { | |
listen 80; | |
server_name wp-kickstart.com; | |
return 301 https://www.wp-kickstart.com$request_uri; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment