summaryrefslogtreecommitdiffstats
path: root/usr/local/etc/nginx/nginx.conf
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/etc/nginx/nginx.conf')
-rw-r--r--usr/local/etc/nginx/nginx.conf34
1 files changed, 17 insertions, 17 deletions
diff --git a/usr/local/etc/nginx/nginx.conf b/usr/local/etc/nginx/nginx.conf
index 4f307ab..904604c 100644
--- a/usr/local/etc/nginx/nginx.conf
+++ b/usr/local/etc/nginx/nginx.conf
@@ -71,22 +71,22 @@ http {
location ~ /\.ht {
deny all;
}
- location @jozan {
- include fastcgi_params;
- root /usr/local/www/gitjoe/jozan;
- try_files $uri @jozan;
- index cgit.cgi;
- fastcgi_param SCRIPT_FILENAME $document_root/cgit.cgi;
- fastcgi_param PATH_INFO $uri;
- fastcgi_param QUERY_STRING $args;
- fastcgi_param HTTP_HOST $server_name;
- fastcgi_param CGIT_CONFIG /usr/local/etc/cgitusers/jozan;
- fastcgi_pass unix:/var/run/fcgiwrap/fcgiwrap.sock;
-
- gzip off;
- #rewrite ^ https://$server_name$request_uri permanent;
- rewrite ^/([^/]+/.*)?$ /cgit.cgi?url=$1 break;
- }
+# location @jozan {
+# include fastcgi_params;
+# root /usr/local/www/gitjoe/jozan;
+# try_files $uri @jozan;
+# index cgit.cgi;
+# fastcgi_param SCRIPT_FILENAME $document_root/cgit.cgi;
+# fastcgi_param PATH_INFO $uri;
+# fastcgi_param QUERY_STRING $args;
+# fastcgi_param HTTP_HOST $server_name;
+# fastcgi_param CGIT_CONFIG /usr/local/etc/cgitusers/jozan;
+# fastcgi_pass unix:/var/run/fcgiwrap/fcgiwrap.sock;
+#
+# gzip off;
+# #rewrite ^ https://$server_name$request_uri permanent;
+# rewrite ^/([^/]+/.*)?$ /cgit.cgi?url=$1 break;
+# }
error_page 403 /403.html;
location = /403.html {
root /usr/local/www/gitjoe/err;
@@ -112,7 +112,7 @@ http {
server {
listen 80;
- server_name cgit.gitjoe.xyz;
+ server_name repos.gitjoe.xyz;
root /usr/local/www/cgit;
try_files $uri @cgit;
index cgit.cgi;