Category nginx

Testing SSL Chaining Issues

Recently I needed to debug an issue by testing SSL chaining issues My old standby tools (curl and openssl were not reporting any errors) The exception javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: Path does not chain with any of…

nginx redirect single url

Objective Using nginx redirect single url Example ORIGINAL URL: REDIRECT TO: nginx basic php location block example location / { try_files $uri $uri/ @mylocation; } location @mylocation { rewrite ^/foo(.*)$ /bar/ redirect; rewrite ^.*$ last; } nginx…

nginx logrotate script

nginx logrotate script Create a new file at with contents: { daily missingok rotate 52 compress delaycompress notifempty create 640 root adm sharedscripts postrotate [ ! -f ] || kill -USR1 `cat ` endscript } Run Logrotate…

nginx ssl pfx

This article will explain what to do with nginx ssl pfx. First get the pfx file to your server. In this example we will be using a directory called “ssl” off of the nginx root (where nginx.conf is located). From…

nginx secure /user drupal

If you are not serving drupal out of a subdirectory use this config example: location / { # This is cool because no php is touched for static content try_files $uri @rewrite; } location @rewrite { Some modules enforce no…

nginx php centos6 howto

Remove previous php installation # yum remove php-cli php-common Add the EPEL and REMI repos: wget wget sudo rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm Install nginx prerequisites # yum install perl pcre-devel gperftools-devel geoip geoip-devel Download nginx # wget “”…