Tag: nginx
-
How to install Hongkong Post SSL e-Cert on Nginx web server
We installed a Hongkong Post e-Cert (Server) on the Nginx web server of our client successfully. Hongkong Post provides a 9-digit PIN envelope reference number and a 16-digit e-Cert PIN password to our client. In this example, we assume that www.linuxharbour.com is the hostname of the web server.
-
Nginx website redirect
When we should redirect a website to a new web address (URL) in nginx, we may make use of Nginx rewrite insides the web site configuration block (ie. location { … }). There are few different types of HTTP redirects, which are in different meaning to browsers. HTTP status code 301 & 302 are two […]
-
Drupal and Nginx with PHP-FPM
When I migrate a drupal site to running on nginx with php-fpm, I will add the following config lines at nginx virtual host setting to allow static files (image files, document files, etc.) to bypass php-fpm. I use nginx variable $query_string to pass query to drupal. location / { try_files $uri $uri/ /index.php?$query_string; } location […]
-
WordPress and Nginx with PHP-FPM
When I installs wordpress running on nginx with php-fpm, I will add the following config lines at nginx virtual host setting to allow static files (image files, document files, etc.) to bypass php-fpm. location / { try_files $uri $uri/ /index.php?q=$uri&$args; } location ~* ^.+\.(jpg|jpeg|gif|png|css|zip|pdf|txt|js|flv|swf|html|htm)$ { # } client_max_body_size 64M; And adding the following […]
-
Installing ISPConfig 3 with Nginx, Postfix, Dovecot
To provide new email and web hosting service to our customers, we deploys ISPConfig 3 with Nginx, Postfix and Dovecot on few Linux hosting systems. And our customers have their own private Linode and other cloud service providers. Their own systems are hosting their emails and web sites for business needs.