Nginx configuration issue while trying to deploy a laravel application on "My Webapp"

What type of hardware are you using: Old laptop or computer
What YunoHost version are you running: 12.0.11
What app is this about: My Webapp

Describe your issue

Hello everyone,

I have recently discovered, Agorakit, an open source Web-based groupware for collectives. I would like to deploy it on my yunohost home server.
Sadly a package does not exist (yet :slight_smile:) and I don’t have the skills to build it myself…

I am trying to deploy this laravel application inside a “My Webapp” app but I am having a very hard time trying to make it work :confused:
My main issues are coming from the nginx configuration that I don’t manage to “simply” serve /public directory.

“My webapp” is installed into a folder agorakit/ of my my domain (but I also tried to install it as a subdomain). While the public files are supposed to be put in the folder /var/www/my_webapp__3/www/ I have deployed agorakit directly in /var/www/my_webapp__3/ and I have changed the nginx configuration for “My Webapp” /etc/nginx/conf.d/[MyDomain].d/my_webapp__3.conf to change the #Path to source to :
alias /var/www/my_webapp__3/public/;

The application failed with a 404 error returned bu Nginx… there is no error in the nginx error log, I only get few notices and warnings… among them, I believe this might be the explanation :

2025/01/22 23:54:39 [debug] 346669#346669: *47 http script regex: "^/agorakit$"
2025/01/22 23:54:39 [notice] 346669#346669: *47 "^/agorakit$" does not match "/agorakit/", client: **************, server: ********, request: "GET /agorakit/ HTTP/1.1", host: "**********"

Can anybody help ?
Thanks in advance !

Guitch

You can have a look at this example lychee_ynh/conf/nginx.conf at master · YunoHost-Apps/lychee_ynh · GitHub

Wahoo ! Nginx config is stilla mystery to me. Thanks very much for your help. It worked !