Php Project getting error 403 after deployment
hey guys
server {
listen 80 default_server;
root /app/public;
index index.php index.html index.htm;
location ~ .php$ {
fastcgi_pass php:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
location / {
try_files $uri $uri/ /index.php?$args;
}
}
is returning 403 Forbidden this is the error log
2023/05/01 09:51:54 [error] 11#11: *2 directory index of "/app/public/" is forbidden, client: 192.168.0.4, server: , request: "GET / HTTP/1.1", host: "company-site-php-production.up.railway.app"
9 Replies
Project ID:
N/A
can you share your repo please
GitHub
GitHub - cloudkasalu/company-site-php: My first fullstack website i...
My first fullstack website in php. Contribute to cloudkasalu/company-site-php development by creating an account on GitHub.
now have you tried without a nginx.config? it doesnt look like it does anything that railway couldnt do
let me try
not quite lol
still getting the same error
yeah you didnt remove the nginx.config like i suggested
have removed it and the error is still there