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