diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2025-04-18 09:06:16 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2025-04-18 09:06:16 +0800 |
commit | dde05240da896b1334c7ce2cc6565c899f0f3ccb (patch) | |
tree | fe0f9577749259cbd7dec79d41fcc3a22a93431a | |
parent | 545b11ceecd3e6f58c1e59222de4ce836856db8d (diff) |
Update
-rw-r--r-- | nginx/Makefile | 1 | ||||
-rw-r--r-- | nginx/nginx.conf | 2 | ||||
-rw-r--r-- | nginx/sites-available/vps | 33 |
3 files changed, 25 insertions, 11 deletions
diff --git a/nginx/Makefile b/nginx/Makefile index 8245ae7..ffe9600 100644 --- a/nginx/Makefile +++ b/nginx/Makefile | |||
@@ -14,6 +14,7 @@ all: src /home/pham/git/ngx-fancyindex | |||
14 | --with-http_dav_module \ | 14 | --with-http_dav_module \ |
15 | --with-http_image_filter_module \ | 15 | --with-http_image_filter_module \ |
16 | --with-http_xslt_module \ | 16 | --with-http_xslt_module \ |
17 | --with-http_addition_module \ | ||
17 | --add-module=/home/pham/git/ngx-fancyindex | 18 | --add-module=/home/pham/git/ngx-fancyindex |
18 | make modules | 19 | make modules |
19 | make | 20 | make |
diff --git a/nginx/nginx.conf b/nginx/nginx.conf index d65af50..effdd31 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf | |||
@@ -33,7 +33,7 @@ http { | |||
33 | # '$status $body_bytes_sent "$http_referer" ' | 33 | # '$status $body_bytes_sent "$http_referer" ' |
34 | # '"$http_user_agent" "$http_x_forwarded_for"'; | 34 | # '"$http_user_agent" "$http_x_forwarded_for"'; |
35 | log_format main '$status $request_method\t$http_host$uri\tfrom $http_referer\n' | 35 | log_format main '$status $request_method\t$http_host$uri\tfrom $http_referer\n' |
36 | ' $time_local $remote_addr\r\t\t\t\t\t $http_user_agent'; | 36 | ' $time_local $remote_addr\r\t\t\t\t\t\t $http_user_agent'; |
37 | access_log /var/log/nginx/access.log main; | 37 | access_log /var/log/nginx/access.log main; |
38 | 38 | ||
39 | sendfile on; | 39 | sendfile on; |
diff --git a/nginx/sites-available/vps b/nginx/sites-available/vps index 37c4ba9..1322bbb 100644 --- a/nginx/sites-available/vps +++ b/nginx/sites-available/vps | |||
@@ -333,15 +333,6 @@ server { | |||
333 | add_header Cache-Control "no-cache" always; | 333 | add_header Cache-Control "no-cache" always; |
334 | } | 334 | } |
335 | 335 | ||
336 | server { | ||
337 | server_name 4ba.tw 202.182.105.248; | ||
338 | listen 80; | ||
339 | |||
340 | root /srv/recall/address; | ||
341 | |||
342 | add_header Cache-Control "no-cache" always; | ||
343 | } | ||
344 | |||
345 | # git server | 336 | # git server |
346 | server { | 337 | server { |
347 | server_name git.topo.tw; | 338 | server_name git.topo.tw; |
@@ -405,8 +396,30 @@ server { | |||
405 | add_header Cache-Control "no-cache" always; | 396 | add_header Cache-Control "no-cache" always; |
406 | } | 397 | } |
407 | 398 | ||
399 | server { | ||
400 | server_name 4ba.tw; | ||
401 | listen 80; | ||
402 | #listen 443 ssl; | ||
403 | #ssl_certificate /home/pham/.acme.sh/4ba.tw_ecc/fullchain.cer; | ||
404 | #ssl_certificate_key /home/pham/.acme.sh/4ba.tw_ecc/4ba.tw.key; | ||
405 | |||
406 | root /srv/recall; | ||
407 | |||
408 | add_header Cache-Control "no-cache" always; | ||
409 | add_header Access-Control-Allow-Origin * always; | ||
410 | |||
411 | location / { | ||
412 | charset utf-8; | ||
413 | autoindex on; | ||
414 | autoindex_localtime on; | ||
415 | autoindex_exact_size off; | ||
416 | #add_after_body /autoindex.html; | ||
417 | } | ||
418 | } | ||
419 | |||
420 | # FOR ACME.SH | ||
408 | #server { | 421 | #server { |
409 | # server_name offline.babababa.tw; | 422 | # server_name 4ba.tw; |
410 | # root /home/pham/Downloads; | 423 | # root /home/pham/Downloads; |
411 | # listen 80; | 424 | # listen 80; |
412 | #} | 425 | #} |