zeldor.biz

Linux, programming and more

Copyright © 2025
Log in

Let’s Encrypt nginx example

December 22, 2017 by Igor Drobot Leave a Comment

Free SSL certificates! This not a mirage. Follow this instructions step by step and you will be able to secure all your running projects for free.

About let’s encrypt: let’s Encrypt is a free, automated, and open certificate authority (CA), run for the public’s benefit.

[Read more…]

Filed Under: Linux Tagged With: Certificate, lets's encrypt, Nginx, OpenSSL, SSL

NginX redirect to Facebook

November 13, 2012 by Igor Drobot Leave a Comment

This is my live example of permanent (301) redirection to external URL with Nginx, all incoming requests will be redirected to a Facebook group.

cat /etc/nginx/sites-enabled/domain.de

1
2
3
4
5
6
7
8
9
10
server {
        server_name  domain.de www.domain.de;
	listen   [::]:80;
	server_tokens off;
 
location / {
	rewrite ^ http://www.facebook.com/groups/399191/ permanent;
}
 
}

server { server_name domain.de www.domain.de; listen [::]:80; server_tokens off; location / { rewrite ^ http://www.facebook.com/groups/399191/ permanent; } }

Filed Under: Linux Tagged With: 301 redirect, facebook, Nginx, redirect

Nginx – Error 413: Request Entity Too Large

August 9, 2011 by Igor Drobot Leave a Comment

The default Nginx maximum body-size of a client request, or maximum file size is 1M. So when you try to upload something larger than 1M, you get the following error: 413: Request Entity Too Large

Create a new configuration file: [Read more…]

Filed Under: Debian, HTTP, Linux, Networking Tagged With: client_max_body_size, Error 413, Nginx

Nginx charset

July 7, 2011 by Igor Drobot 1 Comment

I set up a new virtual host on my nginx web-server only for directory listing of my iso-image collection.
Some of my folders had cyrillic names and they were unfortunately not readable:

With a tiny (charset) option its possible to force a specific charset, here it is: [Read more…]

Filed Under: Linux Tagged With: charset, cyrillic, Nginx, nginx charset

APC – Alternative PHP Cache

June 21, 2011 by Igor Drobot Leave a Comment

A PHP-accelerator is a PHP extension designed to improve the performance of software applications written in the PHP language.

Most PHP accelerators work by caching the compiled p-code (portable code) of PHP-Scripts to avoid the overhead of reparsing and recompiling source code on each request made for example by a stupid bot.

APC is free, open source framework that optimizes PHP intermediate code and caches data and compiled code from the PHP bytecode compiler in shared memory. APC is quickly becoming the de-facto standard PHP caching mechanism as it will be included built-in to the core of PHP starting with PHP 6 <- Great news! [Read more…]

Filed Under: HTTP, Linux, Networking Tagged With: Accelerator, apc, Benchmark, Nginx, php5-fpm

  • 1
  • 2
  • Next Page »
Yeaaah Cookie! We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok