-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnginx.conf
More file actions
39 lines (34 loc) · 759 Bytes
/
Copy pathnginx.conf
File metadata and controls
39 lines (34 loc) · 759 Bytes
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 root;
worker_processes 1;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
#include /etc/nginx/fastcgi.conf;
sendfile on;
gzip off;
keepalive_timeout 65;
server {
listen 80;
root /opt/www;
charset utf-8;
location / {
try_files $uri @gitweb;
}
location @gitweb {
fastcgi_param SCRIPT_FILENAME /opt/www/gitweb.cgi;
fastcgi_param PATH_INFO $uri;
fastcgi_param GITWEB_CONFIG /etc/gitweb.conf;
include fastcgi_params;
fastcgi_pass unix:/var/run/fcgiwrap.socket;
fastcgi_index gitweb.cgi;
gzip off;
}
#location /static {
# root /opt/www/static;
#}
}
}