VPS Symfony app - error 404 except on root route

#1
I have a Symfony app deployed on VPS Cyberpanel which was working fine but not anymore, as it goes.

The root route ("/") is working fine and reaching the Symfony app files. I can also fetch other files sitting on the /public_html directory, like images.

The error I am getting does not seem to be coming from Symfony, but rather directly from litespeed.

I did check that the Symfony routes exist running php bin/console debug:router.

No error logs are output in either the Symfony logs nor the server logs.


I provide the Vhost config below, if that helps.


docRoot $VH_ROOT/public_html
vhDomain $VH_NAME
vhAliases www.$VH_NAME
adminEmails *******
enableGzip 1
enableIpGeo 1

index {
useServer 0
indexFiles index.php, index.html
}

errorlog $VH_ROOT/logs/$VH_NAME.error_log {
useServer 0
logLevel ERROR
rollingSize 10M
}

accesslog $VH_ROOT/logs/$VH_NAME.access_log {
useServer 0
logFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i""
logHeaders 5
rollingSize 10M
keepDays 10
compressArchive 1
}

scripthandler {
add lsapi:bapic5211 php
}

extprocessor bapic5211 {
type lsapi
address UDS://tmp/lshttpd/bapic5211.sock
maxConns 10
env LSAPI_CHILDREN=10
initTimeout 600
retryTimeout 0
persistConn 1
pcKeepAliveTimeout 1
respBuffer 0
autoStart 1
path /usr/local/lsws/lsphp74/bin/lsphp
extUser bapic5211
extGroup bapic5211
memSoftLimit 2047M
memHardLimit 2047M
procSoftLimit 400
procHardLimit 500
}

phpIniOverride {
php_admin_value open_basedir "/tmp:$VH_ROOT"
}

context /specs {
allowBrowse 1
location $DOC_ROOT/specs
extraHeaders Access-Control-Allow-Origin https://www.mywebsite.com
}

rewrite {
enable 1
autoLoadHtaccess 1
}

vhssl {
ommitted
}
 
#3
Thanks Cold-Egg. I just found out that I had inadvertently deleted the .htacess file that was redirecting the Symfony routes to index.php. All is good now. How can I close this?
 
Top