railwayapp-templates / laravel

Laravel on Railway
https://railway.app/template/fWEWWf
14 stars 14 forks source link

403 Forbidden #5

Open braekevelt opened 1 year ago

braekevelt commented 1 year ago

When this template is deployed on railway, the url gives a 403 Forbidden error. The railway logs show this:

2023/03/05 12:23:00 [error] 24#24: *9 directory index of "/nix/store/xxxxxxxxxxxxxxxxxxxxxx-nginx-1.22.1/html/" is forbidden, client: xx.xx.xx.x, server: localhost, request: "GET / HTTP/1.1", host: "laravel-production-xxxx.up.railway.app"

Stackoverflow seems to provide a solution, but I don't know how to do that: https://stackoverflow.com/a/38046124/5504977

dinhquoc0103 commented 1 year ago

I also had the same problem as you. Initially, when I uploaded laravel to the railway, I got an error that mime.types could not be found, after asking it was a problem on the railway side, and after they fixed the mime.types problem, there was a new problem like you are asking. They will fix it soon. Hehe

senyomotey commented 1 year ago

Am still getting the mime.types problem

whitleyhorn commented 1 year ago

Still not fixed for me, I guess we just have to wait? Mine is a PHP app but not Laravel. Still getting 403 with the /html being forbidden

thevacs commented 1 year ago

Still not fixed for me, I guess we just have to wait? Mine is a PHP app but not Laravel. Still getting 403 with the /html being forbidden

Yes, we are still waiting

whitleyhorn commented 1 year ago

It's finally fixed for me. At first it wasn't, so I deleted my service and then redeployed. I got a 404 for a while and was about to lose my cool when I refreshed several minutes later and it started working fine.

unicodeveloper commented 2 weeks ago

Anyone here still experiencing this issue? I want to help and if its fixed, I'll close the issue.