New Sep 18, 2024

How can I Host Api Platform backend in subfolder on Plesk?

Libraries, Frameworks, etc. All from Newest questions tagged vue.js - Stack Overflow View How can I Host Api Platform backend in subfolder on Plesk? on stackoverflow.com

I'm working on a project with a VueJS frontend and a Api Platform backend. I'm trying to publish it through a Plesk Installation but I can't manage to make it work. I have set up my VueJS without any problem and it is online. However, I'd like to host my api using a subfolder. I tried several settings but I always get a 404 error when hitting my-domain.com/api. The server is running on AlmaLinux 8 and Plesk 18.

My structure is the following :

/httpdocs

--/dist (VueJS)

--/api (Api Platform)

Do you have any idea? Is this type of structure doable with Plesk?

Tried to add an .htaccess file to redirect requests but without success. Maybe the configuration wasn't right.

Thanks!

Scroll to top