Posts Tagged ‘nginx’

Howto disable access log in nginx

Sunday, September 14th, 2008

The following configuration disables logging the http requests in nginx
=====
http {
include mime.types;
default_type application/octet-stream;
server_names_hash_bucket_size 64;
#log_format main ‘$remote_addr - $remote_user [$time_local] $request ‘
# [...]

Howto enable Directory Listing in nginx

Monday, September 1st, 2008

To enable directory listing use the following configuration option:
autoindex on;

eg:
server { listen 80; server_name gnusys.net; autoindex on;…………}

nginx server_names_hash_bucket_size error

Monday, August 25th, 2008

The error:
Starting nginx daemon: nginx2008/08/25 00:29:09 [emerg] 4011#0: could not build the server_names_hash, you should increase server_names_hash_bucket_size: 32
The fix:
Within the http block of the nginx config file make sure you have the server_names_hash_bucket_size set higher than the minimum 32
something lik
http { server_names_hash_bucket_size 64;
}
explanation :
hash_max_size will control the
number of virtual host entries, while _hash_bucket_size will [...]

Howto install Nginx from source

Wednesday, August 13th, 2008

Nginx is a very fast ,powerful asynchronous web server that can be considered as a good replacement for the Apache HTTPD web server. Below are the steps required to get Nginx installed on your system. It is preffered to install Nginx from source as we get the latest stable version of this project as compared [...]