blob: 1144af3d7ceb784f3c4fba7abd32830a90257943 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
user nginx nginx;
worker_processes auto;
events {
# NGINX refuses to start if the 'events' section is not present. Yet,
# NGINX does not seem to care whether this section is non-empty.
}
http {
# Maximum hash table size is increased to accommodate for a large
# mime.types file that is shipped on Gentoo.
types_hash_max_size 4096;
include /etc/nginx/mime.types.nginx;
sendfile on;
# Example server. Warning: by default, the /var/www/localhost directory is
# NOT created; for the following configuration block to work, the
# directory must be created manually.
server {
listen 127.0.0.1;
server_name localhost;
# Substitute the directory below for the one you use.
#root /var/www/localhost/htdocs;
}
# SSL server example.
#server {
#listen 127.0.0.1:443 ssl;
#server_name localhost;
#ssl_certificate /etc/ssl/nginx/nginx.pem;
#ssl_certificate_key /etc/ssl/nginx/nginx.key;
#root /var/www/localhost/htdocs;
#}
}
|