Compare commits

..

2 Commits

5 changed files with 279 additions and 11 deletions

View File

@ -1,9 +1,14 @@
To install To install
docker pull git.brynstuff.co.uk/bryn/web:0.01 docker pull git.brynstuff.co.uk/bryn/web:0.02
version history: version history:
---------------------------------------------- ----------------------------------------------
0.02
Alpine/3.21.0
nginx/1.26.2
PHP/8.2.27 (fpn-fcgi)
0.01 0.01
Alpine/3.20.3 Alpine/3.20.3
nginx/1.26.2 nginx/1.26.2

View File

@ -1,7 +1,7 @@
--- ---
services: services:
frontend: frontend:
image: git.brynstuff.co.uk/bryn/web:0.01 image: git.brynstuff.co.uk/bryn/web:0.02
build: . build: .
ports: ports:
- 80:80 - 80:80

12
logs/access.log Normal file
View File

@ -0,0 +1,12 @@
192.168.0.245 - - [12/Oct/2024:10:52:01 +0000] "GET / HTTP/1.1" 403 555 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36"
192.168.0.245 - - [12/Oct/2024:10:53:15 +0000] "GET / HTTP/1.1" 403 555 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36"
192.168.0.245 - - [12/Oct/2024:10:53:32 +0000] "GET /text.php HTTP/1.1" 502 559 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36"
192.168.0.245 - - [12/Oct/2024:10:54:41 +0000] "GET /text.php HTTP/1.1" 502 559 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36"
192.168.0.245 - - [12/Oct/2024:11:26:51 +0000 "GET /text.php HTTP/1.1" 502 559 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36" "-"
192.168.0.245 - - [12/Oct/2024:11:26:57 +0000 "GET / HTTP/1.1" 403 187 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36" "-"
192.168.0.245 - - [12/Oct/2024:11:27:42 +0000 "GET / HTTP/1.1" 403 187 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36" "-"
192.168.0.245 - - [12/Oct/2024:11:28:02 +0000 "GET / HTTP/1.1" 502 559 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36" "-"
192.168.0.245 - - [12/Oct/2024:11:34:04 +0000 "GET / HTTP/1.1" 502 559 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36" "-"
192.168.0.245 - - [12/Oct/2024:11:42:49 +0000 "GET / HTTP/1.1" 500 5 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36" "-"
192.168.0.245 - - [12/Oct/2024:11:43:59 +0000 "GET / HTTP/1.1" 200 24030 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36" "-"
192.168.0.245 - - [12/Oct/2024:12:00:39 +0000 "GET / HTTP/1.1" 200 24026 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36" "-"

229
logs/error.log Normal file
View File

@ -0,0 +1,229 @@
2024/10/12 10:52:01 [error] 7#7: *1 directory index of "/app/" is forbidden, client: 192.168.0.245, server: brynstuff-api.home.brynstuff.co.uk, request: "GET / HTTP/1.1", host: "192.168.0.40"
2024/10/12 10:53:15 [error] 7#7: *1 directory index of "/app/" is forbidden, client: 192.168.0.245, server: brynstuff-api.home.brynstuff.co.uk, request: "GET / HTTP/1.1", host: "192.168.0.40"
2024/10/12 10:53:32 [error] 7#7: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.0.245, server: brynstuff-api.home.brynstuff.co.uk, request: "GET /text.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "192.168.0.40"
2024/10/12 10:54:41 [error] 7#7: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.0.245, server: localhost, request: "GET /text.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "192.168.0.40"
2024/10/12 11:26:44 [notice] 1#1: using the "epoll" event method
2024/10/12 11:26:44 [notice] 1#1: nginx/1.26.2
2024/10/12 11:26:44 [notice] 1#1: OS: Linux 6.8.12-2-pve
2024/10/12 11:26:44 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
2024/10/12 11:26:44 [notice] 1#1: start worker processes
2024/10/12 11:26:44 [notice] 1#1: start worker process 11
2024/10/12 11:26:44 [notice] 1#1: start worker process 12
2024/10/12 11:26:51 [crit] 11#11: *1 connect() to unix:/var/run/php/php8-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.0.245, server: bsapi.home.brynstuff.co.uk, request: "GET /text.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php8-fpm.sock:", host: "192.168.0.40"
2024/10/12 11:26:57 [error] 11#11: *1 directory index of "/app/" is forbidden, client: 192.168.0.245, server: bsapi.home.brynstuff.co.uk, request: "GET / HTTP/1.1", host: "192.168.0.40"
2024/10/12 11:27:01 [notice] 1#1: signal 15 (SIGTERM) received, exiting
2024/10/12 11:27:01 [notice] 12#12: exiting
2024/10/12 11:27:01 [notice] 12#12: exit
2024/10/12 11:27:01 [notice] 11#11: exiting
2024/10/12 11:27:01 [notice] 11#11: exit
2024/10/12 11:27:01 [notice] 1#1: signal 17 (SIGCHLD) received from 11
2024/10/12 11:27:01 [notice] 1#1: worker process 11 exited with code 0
2024/10/12 11:27:01 [notice] 1#1: signal 29 (SIGIO) received
2024/10/12 11:27:01 [notice] 1#1: signal 17 (SIGCHLD) received from 12
2024/10/12 11:27:01 [notice] 1#1: worker process 12 exited with code 0
2024/10/12 11:27:01 [notice] 1#1: exit
2024/10/12 11:27:37 [notice] 1#1: using the "epoll" event method
2024/10/12 11:27:37 [notice] 1#1: nginx/1.26.2
2024/10/12 11:27:37 [notice] 1#1: OS: Linux 6.8.12-2-pve
2024/10/12 11:27:37 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
2024/10/12 11:27:37 [notice] 1#1: start worker processes
2024/10/12 11:27:37 [notice] 1#1: start worker process 12
2024/10/12 11:27:37 [notice] 1#1: start worker process 13
2024/10/12 11:27:42 [error] 12#12: *1 directory index of "/app/" is forbidden, client: 192.168.0.245, server: bsapi.home.brynstuff.co.uk, request: "GET / HTTP/1.1", host: "192.168.0.40"
2024/10/12 11:27:45 [notice] 1#1: signal 15 (SIGTERM) received, exiting
2024/10/12 11:27:45 [notice] 12#12: exiting
2024/10/12 11:27:45 [notice] 12#12: exit
2024/10/12 11:27:45 [notice] 13#13: exiting
2024/10/12 11:27:45 [notice] 13#13: exit
2024/10/12 11:27:45 [notice] 1#1: signal 17 (SIGCHLD) received from 12
2024/10/12 11:27:45 [notice] 1#1: worker process 12 exited with code 0
2024/10/12 11:27:45 [notice] 1#1: worker process 13 exited with code 0
2024/10/12 11:27:45 [notice] 1#1: exit
2024/10/12 11:28:00 [notice] 1#1: using the "epoll" event method
2024/10/12 11:28:00 [notice] 1#1: nginx/1.26.2
2024/10/12 11:28:00 [notice] 1#1: OS: Linux 6.8.12-2-pve
2024/10/12 11:28:00 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
2024/10/12 11:28:00 [notice] 1#1: start worker processes
2024/10/12 11:28:00 [notice] 1#1: start worker process 12
2024/10/12 11:28:00 [notice] 1#1: start worker process 13
2024/10/12 11:28:02 [crit] 12#12: *1 connect() to unix:/var/run/php/php8-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.0.245, server: bsapi.home.brynstuff.co.uk, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php8-fpm.sock:", host: "192.168.0.40"
2024/10/12 11:28:06 [notice] 1#1: signal 15 (SIGTERM) received, exiting
2024/10/12 11:28:06 [notice] 13#13: exiting
2024/10/12 11:28:06 [notice] 12#12: exiting
2024/10/12 11:28:06 [notice] 12#12: exit
2024/10/12 11:28:06 [notice] 13#13: exit
2024/10/12 11:28:06 [notice] 1#1: signal 17 (SIGCHLD) received from 13
2024/10/12 11:28:06 [notice] 1#1: worker process 12 exited with code 0
2024/10/12 11:28:06 [notice] 1#1: worker process 13 exited with code 0
2024/10/12 11:28:06 [notice] 1#1: exit
2024/10/12 11:28:37 [notice] 1#1: using the "epoll" event method
2024/10/12 11:28:37 [notice] 1#1: nginx/1.26.2
2024/10/12 11:28:37 [notice] 1#1: OS: Linux 6.8.12-2-pve
2024/10/12 11:28:37 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
2024/10/12 11:28:37 [notice] 1#1: start worker processes
2024/10/12 11:28:37 [notice] 1#1: start worker process 12
2024/10/12 11:28:37 [notice] 1#1: start worker process 13
2024/10/12 11:30:30 [notice] 1#1: signal 17 (SIGCHLD) received from 24
2024/10/12 11:30:30 [notice] 1#1: unknown process 24 exited with code 78
2024/10/12 11:32:13 [notice] 1#1: signal 15 (SIGTERM) received, exiting
2024/10/12 11:32:13 [notice] 12#12: exiting
2024/10/12 11:32:13 [notice] 12#12: exit
2024/10/12 11:32:13 [notice] 13#13: exiting
2024/10/12 11:32:13 [notice] 13#13: exit
2024/10/12 11:32:13 [notice] 1#1: signal 17 (SIGCHLD) received from 13
2024/10/12 11:32:13 [notice] 1#1: worker process 13 exited with code 0
2024/10/12 11:32:13 [notice] 1#1: signal 29 (SIGIO) received
2024/10/12 11:32:13 [notice] 1#1: signal 17 (SIGCHLD) received from 12
2024/10/12 11:32:13 [notice] 1#1: worker process 12 exited with code 0
2024/10/12 11:32:13 [notice] 1#1: exit
2024/10/12 11:33:26 [notice] 1#1: using the "epoll" event method
2024/10/12 11:33:26 [notice] 1#1: nginx/1.26.2
2024/10/12 11:33:26 [notice] 1#1: OS: Linux 6.8.12-2-pve
2024/10/12 11:33:26 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
2024/10/12 11:33:26 [notice] 1#1: start worker processes
2024/10/12 11:33:26 [notice] 1#1: start worker process 12
2024/10/12 11:33:26 [notice] 1#1: start worker process 13
2024/10/12 11:34:04 [crit] 12#12: *1 connect() to unix:/var/run/php/php82-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.0.245, server: bsapi.home.brynstuff.co.uk, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php82-fpm.sock:", host: "192.168.0.40"
2024/10/12 11:34:40 [notice] 1#1: signal 17 (SIGCHLD) received from 8
2024/10/12 11:34:40 [notice] 1#1: unknown process 8 exited with code 0
2024/10/12 11:37:48 [notice] 1#1: signal 17 (SIGCHLD) received from 42
2024/10/12 11:37:48 [notice] 1#1: unknown process 42 exited with code 78
2024/10/12 11:38:23 [notice] 1#1: signal 15 (SIGTERM) received, exiting
2024/10/12 11:38:23 [notice] 12#12: exiting
2024/10/12 11:38:23 [notice] 12#12: exit
2024/10/12 11:38:23 [notice] 13#13: exiting
2024/10/12 11:38:23 [notice] 13#13: exit
2024/10/12 11:38:23 [notice] 1#1: signal 17 (SIGCHLD) received from 13
2024/10/12 11:38:23 [notice] 1#1: worker process 13 exited with code 0
2024/10/12 11:38:23 [notice] 1#1: signal 29 (SIGIO) received
2024/10/12 11:38:23 [notice] 1#1: signal 17 (SIGCHLD) received from 12
2024/10/12 11:38:23 [notice] 1#1: worker process 12 exited with code 0
2024/10/12 11:38:23 [notice] 1#1: exit
2024/10/12 11:39:27 [emerg] 1#1: invalid number of arguments in "fastcgi_pass" directive in /etc/nginx/conf.d/default.conf:10
2024/10/12 11:39:49 [emerg] 1#1: invalid number of arguments in "fastcgi_pass" directive in /etc/nginx/conf.d/default.conf:10
2024/10/12 11:42:11 [emerg] 1#1: host not found in upstream "php" in /etc/nginx/conf.d/default.conf:10
2024/10/12 11:42:34 [notice] 1#1: using the "epoll" event method
2024/10/12 11:42:34 [notice] 1#1: nginx/1.26.2
2024/10/12 11:42:34 [notice] 1#1: OS: Linux 6.8.12-2-pve
2024/10/12 11:42:34 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
2024/10/12 11:42:34 [notice] 1#1: start worker processes
2024/10/12 11:42:34 [notice] 1#1: start worker process 12
2024/10/12 11:42:34 [notice] 1#1: start worker process 13
2024/10/12 11:42:36 [notice] 1#1: signal 15 (SIGTERM) received, exiting
2024/10/12 11:42:36 [notice] 12#12: exiting
2024/10/12 11:42:36 [notice] 12#12: exit
2024/10/12 11:42:36 [notice] 13#13: exiting
2024/10/12 11:42:36 [notice] 13#13: exit
2024/10/12 11:42:36 [notice] 1#1: signal 17 (SIGCHLD) received from 13
2024/10/12 11:42:36 [notice] 1#1: worker process 12 exited with code 0
2024/10/12 11:42:36 [notice] 1#1: worker process 13 exited with code 0
2024/10/12 11:42:36 [notice] 1#1: exit
2024/10/12 11:42:41 [notice] 1#1: using the "epoll" event method
2024/10/12 11:42:41 [notice] 1#1: nginx/1.26.2
2024/10/12 11:42:41 [notice] 1#1: OS: Linux 6.8.12-2-pve
2024/10/12 11:42:41 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
2024/10/12 11:42:41 [notice] 1#1: start worker processes
2024/10/12 11:42:41 [notice] 1#1: start worker process 12
2024/10/12 11:42:41 [notice] 1#1: start worker process 13
2024/10/12 11:42:49 [error] 12#12: *1 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Call to undefined function php_info() in /app/index.php:2
Stack trace:
#0 {main}
thrown in /app/index.php on line 2" while reading response header from upstream, client: 192.168.0.245, server: bsapi.home.brynstuff.co.uk, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "192.168.0.40"
2024/10/12 11:59:38 [notice] 1#1: signal 15 (SIGTERM) received, exiting
2024/10/12 11:59:38 [notice] 12#12: exiting
2024/10/12 11:59:38 [notice] 13#13: exiting
2024/10/12 11:59:38 [notice] 12#12: exit
2024/10/12 11:59:38 [notice] 13#13: exit
2024/10/12 11:59:38 [notice] 1#1: signal 17 (SIGCHLD) received from 13
2024/10/12 11:59:38 [notice] 1#1: worker process 13 exited with code 0
2024/10/12 11:59:38 [notice] 1#1: signal 29 (SIGIO) received
2024/10/12 11:59:38 [notice] 1#1: signal 17 (SIGCHLD) received from 12
2024/10/12 11:59:38 [notice] 1#1: worker process 12 exited with code 0
2024/10/12 11:59:38 [notice] 1#1: exit
2024/10/12 11:59:52 [notice] 1#1: using the "epoll" event method
2024/10/12 11:59:52 [notice] 1#1: nginx/1.26.2
2024/10/12 11:59:52 [notice] 1#1: OS: Linux 6.8.12-2-pve
2024/10/12 11:59:52 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
2024/10/12 11:59:52 [notice] 1#1: start worker processes
2024/10/12 11:59:52 [notice] 1#1: start worker process 12
2024/10/12 11:59:52 [notice] 1#1: start worker process 13
2024/10/12 12:00:05 [notice] 1#1: signal 15 (SIGTERM) received, exiting
2024/10/12 12:00:05 [notice] 13#13: exiting
2024/10/12 12:00:05 [notice] 12#12: exiting
2024/10/12 12:00:05 [notice] 12#12: exit
2024/10/12 12:00:05 [notice] 13#13: exit
2024/10/12 12:00:05 [notice] 1#1: signal 17 (SIGCHLD) received from 13
2024/10/12 12:00:05 [notice] 1#1: worker process 13 exited with code 0
2024/10/12 12:00:05 [notice] 1#1: signal 29 (SIGIO) received
2024/10/12 12:00:05 [notice] 1#1: signal 17 (SIGCHLD) received from 12
2024/10/12 12:00:05 [notice] 1#1: worker process 12 exited with code 0
2024/10/12 12:00:05 [notice] 1#1: exit
2024/10/12 12:00:10 [notice] 1#1: using the "epoll" event method
2024/10/12 12:00:10 [notice] 1#1: nginx/1.26.2
2024/10/12 12:00:10 [notice] 1#1: OS: Linux 6.8.12-2-pve
2024/10/12 12:00:10 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
2024/10/12 12:00:10 [notice] 1#1: start worker processes
2024/10/12 12:00:10 [notice] 1#1: start worker process 12
2024/10/12 12:00:10 [notice] 1#1: start worker process 13
2024/10/12 12:00:13 [notice] 1#1: signal 15 (SIGTERM) received, exiting
2024/10/12 12:00:13 [notice] 12#12: exiting
2024/10/12 12:00:13 [notice] 12#12: exit
2024/10/12 12:00:13 [notice] 13#13: exiting
2024/10/12 12:00:13 [notice] 13#13: exit
2024/10/12 12:00:13 [notice] 1#1: signal 17 (SIGCHLD) received from 13
2024/10/12 12:00:13 [notice] 1#1: worker process 12 exited with code 0
2024/10/12 12:00:13 [notice] 1#1: worker process 13 exited with code 0
2024/10/12 12:00:13 [notice] 1#1: exit
2024/10/12 12:00:31 [notice] 1#1: using the "epoll" event method
2024/10/12 12:00:31 [notice] 1#1: nginx/1.26.2
2024/10/12 12:00:31 [notice] 1#1: OS: Linux 6.8.12-2-pve
2024/10/12 12:00:31 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
2024/10/12 12:00:31 [notice] 1#1: start worker processes
2024/10/12 12:00:31 [notice] 1#1: start worker process 12
2024/10/12 12:00:31 [notice] 1#1: start worker process 13
2024/10/12 12:00:34 [notice] 1#1: signal 15 (SIGTERM) received, exiting
2024/10/12 12:00:34 [notice] 12#12: exiting
2024/10/12 12:00:34 [notice] 12#12: exit
2024/10/12 12:00:34 [notice] 13#13: exiting
2024/10/12 12:00:34 [notice] 13#13: exit
2024/10/12 12:00:34 [notice] 1#1: signal 17 (SIGCHLD) received from 12
2024/10/12 12:00:34 [notice] 1#1: worker process 12 exited with code 0
2024/10/12 12:00:34 [notice] 1#1: signal 29 (SIGIO) received
2024/10/12 12:00:34 [notice] 1#1: signal 17 (SIGCHLD) received from 13
2024/10/12 12:00:34 [notice] 1#1: worker process 13 exited with code 0
2024/10/12 12:00:34 [notice] 1#1: exit
2024/10/12 12:00:36 [notice] 1#1: using the "epoll" event method
2024/10/12 12:00:36 [notice] 1#1: nginx/1.26.2
2024/10/12 12:00:36 [notice] 1#1: OS: Linux 6.8.12-2-pve
2024/10/12 12:00:36 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
2024/10/12 12:00:36 [notice] 1#1: start worker processes
2024/10/12 12:00:36 [notice] 1#1: start worker process 12
2024/10/12 12:00:36 [notice] 1#1: start worker process 13
2024/10/12 12:01:03 [notice] 1#1: signal 15 (SIGTERM) received, exiting
2024/10/12 12:01:03 [notice] 12#12: exiting
2024/10/12 12:01:03 [notice] 12#12: exit
2024/10/12 12:01:03 [notice] 13#13: exiting
2024/10/12 12:01:03 [notice] 13#13: exit
2024/10/12 12:01:03 [notice] 1#1: signal 17 (SIGCHLD) received from 13
2024/10/12 12:01:03 [notice] 1#1: worker process 13 exited with code 0
2024/10/12 12:01:03 [notice] 1#1: signal 17 (SIGCHLD) received from 12
2024/10/12 12:01:03 [notice] 1#1: worker process 12 exited with code 0
2024/10/12 12:01:03 [notice] 1#1: exit
2024/10/12 12:08:01 [notice] 1#1: using the "epoll" event method
2024/10/12 12:08:01 [notice] 1#1: nginx/1.26.2
2024/10/12 12:08:01 [notice] 1#1: OS: Linux 6.8.12-2-pve
2024/10/12 12:08:01 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
2024/10/12 12:08:01 [notice] 1#1: start worker processes
2024/10/12 12:08:01 [notice] 1#1: start worker process 11
2024/10/12 12:08:01 [notice] 1#1: start worker process 12
2024/10/13 14:24:08 [notice] 1#1: signal 15 (SIGTERM) received, exiting
2024/10/13 14:24:08 [notice] 11#11: exiting
2024/10/13 14:24:08 [notice] 11#11: exit
2024/10/13 14:24:08 [notice] 12#12: exiting
2024/10/13 14:24:08 [notice] 12#12: exit
2024/10/13 14:24:08 [notice] 1#1: signal 17 (SIGCHLD) received from 12
2024/10/13 14:24:08 [notice] 1#1: worker process 12 exited with code 0
2024/10/13 14:24:08 [notice] 1#1: signal 29 (SIGIO) received
2024/10/13 14:24:08 [notice] 1#1: signal 17 (SIGCHLD) received from 11
2024/10/13 14:24:08 [notice] 1#1: worker process 11 exited with code 0
2024/10/13 14:24:08 [notice] 1#1: exit

View File

@ -2,15 +2,37 @@ server {
index index.php index.html index.htm; index index.php index.html index.htm;
listen 80; listen 80;
listen [::]:80; listen [::]:80;
location / {
try_files $uri $uri/ =404;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
}
root /app; root /app;
charset utf-8;
#This is a rewrite rule. It is telling nginx to try to find the file in the root directory. If it can't find it, it will try to find it in the root directory with a trailing slash. If it can't find it there, it will try to find it in the routes.php file.
location / {
try_files $uri $uri/ /routes.php?$query_string;
}
error_page 404 /routes.php;
location routes.php {
}
#This is telling nginx to return a 404 error if it finds a php file.
location ~ \.php {
return 404;
}
location ~ (\.png|\.jpg|\.gif|\.jpeg|\.zip|\.css|\.svg|\.js)$ {
}
location = /routes.php {
try_files $uri /routes.php?$query_string;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index routes.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
server_name bsapi.home.brynstuff.co.uk; server_name bsapi.home.brynstuff.co.uk;
} }