Hi, it's me again, and still having the same issue I was having in this topic: File not found when attempting to index . However, I have made some progress. I now know that when I attempt to, I get the following:
2023-12-08 16:02:26 172.19.0.4 - 08/Dec/2023:19:02:26 +0000 "POST /admin.php" 404
2023-12-08 16:02:28 172.19.0.4 - 08/Dec/2023:19:02:26 +0000 "GET /index.php" 200
2023-12-08 16:02:29 172.19.0.4 - 08/Dec/2023:19:02:27 +0000 "GET /index.php" 200
I have researched and it seems like it's an issue with nginx's connection, like the path being wrong, but I have checked that plenty of times to no avail. The following are nginx's config:
server {
listen 80;
root /var/www/html;
index index.php index.html index.htm;
server_name 127.0.0.1;
location ~\.php$ {
fastcgi_pass App:9000;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_index index.php;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_read_timeout 500;
include fastcgi_params;
}
location / {
try_files $uri $uri/ /index.php$query_string;
gzip_static on;
}
}
...And then the docker compose:
version: '2.2'
services:
web:
image: nginx:latest
ports:
- "127.0.0.1:80:80"
networks:
- elastic
volumes:
- ./nginx/conf.d/default.conf:/etc/nginx/conf.d/defaul.conf
- ./php/App:/var/www/html
links:
- app
app:
image: php:8-fpm
build:
dockerfile: ./Dockerfile
networks:
- elastic
volumes:
- ./php/App:/var/www/html
Anyone can see the issue here? It can do searches just fine, but posting stuff just gets me file not found. Thank you in advance for your time.