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
Percy
Percy15mo ago
Project ID: N/A
Brody
Brody15mo ago
can you share your repo please
cloudkasalu
cloudkasalu15mo ago
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.
Brody
Brody15mo ago
now have you tried without a nginx.config? it doesnt look like it does anything that railway couldnt do
cloudkasalu
cloudkasalu15mo ago
let me try
Brody
Brody15mo ago
not quite lol
cloudkasalu
cloudkasalu15mo ago
still getting the same error
Brody
Brody15mo ago
yeah you didnt remove the nginx.config like i suggested
cloudkasalu
cloudkasalu15mo ago
have removed it and the error is still there