summaryrefslogtreecommitdiffhomepage
path: root/nginx/nginx.conf
diff options
context:
space:
mode:
authorHsieh Chin Fan <typebrook@gmail.com>2022-02-02 13:34:47 +0800
committerHsieh Chin Fan <pham@topo.tw>2024-11-30 21:09:29 +0800
commit9934dd538b0ce116e3b1600272cb46369b082246 (patch)
tree2f28c6c362201151eaf8218e566479ed7eb72070 /nginx/nginx.conf
init commit
Diffstat (limited to 'nginx/nginx.conf')
-rw-r--r--nginx/nginx.conf131
1 files changed, 131 insertions, 0 deletions
diff --git a/nginx/nginx.conf b/nginx/nginx.conf
new file mode 100644
index 0000000..d0601ec
--- /dev/null
+++ b/nginx/nginx.conf
@@ -0,0 +1,131 @@
1load_module /etc/nginx/modules/ngx_http_dav_ext_module.so;
2load_module /etc/nginx/modules/ngx_http_xslt_filter_module.so;
3load_module /etc/nginx/modules/ngx_http_proxy_connect_module.so;
4
5user pham;
6worker_processes 1;
7
8#error_log logs/error.log;
9#error_log logs/error.log notice;
10#error_log logs/error.log info;
11
12#pid logs/nginx.pid;
13
14
15events {
16 worker_connections 1024;
17}
18
19
20http {
21 types_hash_max_size 4096;
22 server_names_hash_bucket_size 128;
23
24 include mime.types;
25 default_type application/octet-stream;
26 disable_symlinks off;
27
28 # Read manual for valid variables:
29 # https://nginx.org/en/docs/http/ngx_http_core_module.html#variables
30
31 #log_format main '$remote_addr - $remote_user [$time_local] "$request" '
32 # '$status $body_bytes_sent "$http_referer" '
33 # '"$http_user_agent" "$http_x_forwarded_for"';
34 log_format main '$status $request_method\t$http_host$uri\tfrom $http_referer\n'
35 '$time_iso8601 $remote_addr\r\t\t\t\t\t $http_user_agent';
36 access_log /var/log/nginx/access.log main;
37
38 sendfile on;
39 #tcp_nopush on;
40
41 #keepalive_timeout 0;
42 keepalive_timeout 65;
43
44 #gzip on;
45
46 #server {
47 # listen 80;
48 # server_name localhost;
49
50 # #charset koi8-r;
51
52 # #access_log logs/host.access.log main;
53
54 # location / {
55 # root /usr/share/nginx/html;
56 # index index.html index.htm;
57 # }
58
59 # #error_page 404 /404.html;
60
61 # # redirect server error pages to the static page /50x.html
62 # #
63 # error_page 500 502 503 504 /50x.html;
64 # location = /50x.html {
65 # root /usr/share/nginx/html;
66 # }
67
68 # proxy the PHP scripts to Apache listening on 127.0.0.1:80
69 #
70 #location ~ \.php$ {
71 # proxy_pass http://127.0.0.1;
72 #}
73
74 # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
75 #
76 #location ~ \.php$ {
77 # root html;
78 # fastcgi_pass 127.0.0.1:9000;
79 # fastcgi_index index.php;
80 # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
81 # include fastcgi_params;
82 #}
83
84 # deny access to .htaccess files, if Apache's document root
85 # concurs with nginx's one
86 #
87 #location ~ /\.ht {
88 # deny all;
89 #}
90 #}
91
92
93 # another virtual host using mix of IP-, name-, and port-based configuration
94 #
95 #server {
96 # listen 8000;
97 # listen somename:8080;
98 # server_name somename alias another.alias;
99
100 # location / {
101 # root html;
102 # index index.html index.htm;
103 # }
104 #}
105
106
107 # HTTPS server
108 #
109 #server {
110 # listen 443 ssl;
111 # server_name localhost;
112
113 # ssl_certificate cert.pem;
114 # ssl_certificate_key cert.key;
115
116 # ssl_session_cache shared:SSL:1m;
117 # ssl_session_timeout 5m;
118
119 # ssl_ciphers HIGH:!aNULL:!MD5;
120 # ssl_prefer_server_ciphers on;
121
122 # location / {
123 # root html;
124 # index index.html index.htm;
125 # }
126 #}
127
128 # load configs
129 #include /etc/nginx/conf.d/*.conf;
130 include /etc/nginx/sites-enabled/vps;
131}