about summary refs log tree commit diff stats
path: root/tools/conf/etc/nginx
diff options
context:
space:
mode:
authorSilvino Silva <silvino@bk.ru>2017-01-14 10:08:58 +0000
committerSilvino Silva <silvino@bk.ru>2017-01-14 10:08:58 +0000
commit85967ef5d54f6efbc7ff2f2e9d5126d8197cf43b (patch)
treea9505fe40c4d8587b9746218e54426c5f6431ac2 /tools/conf/etc/nginx
parent5eeb7b45275d15b5562e07cdfd6738d76b1446a9 (diff)
downloaddoc-85967ef5d54f6efbc7ff2f2e9d5126d8197cf43b.tar.gz
clean url in gitweb
Diffstat (limited to 'tools/conf/etc/nginx')
-rw-r--r--tools/conf/etc/nginx/sites-enabled/git.localhost.conf31
1 files changed, 31 insertions, 0 deletions
diff --git a/tools/conf/etc/nginx/sites-enabled/git.localhost.conf b/tools/conf/etc/nginx/sites-enabled/git.localhost.conf
new file mode 100644
index 0000000..0cef2b1
--- /dev/null
+++ b/tools/conf/etc/nginx/sites-enabled/git.localhost.conf
@@ -0,0 +1,31 @@
+server {
+    listen 443 ssl;
+
+    server_name git.localhost git.c9.core git.core.privat-network.net;
+
+    root /srv/www/gitweb;
+
+#  location / {
+#      index gitweb.cgi;
+#  }
+
+#  location /gitweb.cgi {
+#      include fastcgi_params;
+#      gzip off;
+#      fastcgi_param   SCRIPT_FILENAME /srv/www/gitweb/gitweb.cgi;
+#      fastcgi_param   GITWEB_CONFIG	/etc/gitweb.conf;
+#      fastcgi_pass    unix:/var/run/fcgiwrap.sock;
+#  }
+
+    location / {
+    index gitweb.cgi
+    fastcgi_param GITWEB_CONFIG  /etc/gitweb.conf;
+    fastcgi_param DOCUMENT_ROOT  /srv/www/gitweb/;
+    fastcgi_param SCRIPT_NAME    /gitweb.cgi$fastcgi_path_info;
+    fastcgi_split_path_info      ^()(/?.+)$;
+
+    include fastcgi_params;
+    fastcgi_pass unix:/var/run/fcgiwrap.sock;
+     }
+
+}