Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

kabadabra's avatar

Horizon not working in subfolder

I've set up Laravel + Horizon in a subfolder on our server (nginx) but Horizon just loads a blank page with no display or console errors. Works fine on localhost. I replicated the issue on localhost by moving the Laravel installation to a subfolder and then I get the same issue where assets etc. try and load from root e.g. /vendor/horizon/css/app.css.map

Is there anywhere in Horizon I can change the path or tell it to point to the subfolder? Thanks in advance.

0 likes
3 replies
bobbybouwmann's avatar

If your whole project is in the subfolder it should work just fine, because the subfolder would be the root directory of the project. The subfolder should contain the vendor directory and so on as well

kabadabra's avatar

Doesn't work for our server setup. We managed to change this by changing the hardcoded /horizon/ path in the JS file. All seems to be working now. Thx.

Please or to participate in this conversation.