Tags » Nginx

How to generate self-signed X.509 certificates for local development (Nginx)

This days, security and encryption is one of the most important topics and that’s why we need to have certain amount of knowledge about commonly used methods. 1,084 more words

Linux

Deploying an SSL Enabled App on EC2

The Setup

Cloud: Amazon EC2 instance running Ubuntu 16.04.
Web Server: Nginx.
Web Frameworks: Flask.
SSL: Let’s Encrypt.
Worker: Systemd
Domain Name Registrar: Go Daddy… 1,049 more words

Web Development

Nginx configuration for adding cross-origin resource sharing (CORS)


server
{
listen 80;
server_name xx.xx.xx;
root /var/www/;
autoindex on;
location /
{
index index.html index.htm;
# Simple requests
set $cors '';
if ($http_origin ~ '^(https?:\/\/)[^\s]+') {
50 more words

Cors

FIX: NGINX Log: an upstream response is buffered to a temporary file /var/cache/nginx/fastcgi_temp/1/05/0000000051 while reading upstream

The warning message in the nginx error.log:

13081#13081: *1964 an upstream response is buffered to a temporary file /var/cache/nginx/fastcgi_temp/1/05/0000000051 while reading upstream, client: 78.90.167.79, server: … 39 more words

Crash - Quick

QUICK HOWTO: ( 2x Nginx Balancers + 2x PHP-FPM Backends + 1x PostgreSQL ) - Websites needs PHP Performance

This is not howto. That’s only a reminder on centos6.7, nginx, php-fpm and pgsql. All the ‘examples’ are commands recorded in shell history.

So, The ‘infrastructure’ include 2x Centos 6.7 hosts for Web (http/https) running Nginx and PHP,  and 1x Centos 6.7 host for central db , running on PostgreSQL. 898 more words

Linux

Nginx config for HTML5 history API


location / {
  try_files $uri @rewrites;
}


location @rewrites {
  rewrite ^(.+)$ /index.html last;
}

Nginx

Sample nginx config

server {

    listen       80;

    server_name  ;

    # note that these lines are originally from the “location /” block

    root   ;

    index index.php index.html index.htm;

    location ~ “\.(jpg)” { 42 more words

Nginx