I have installed Nodejs on my cPanel Cloudlinux server.
I created a Nodejs app (Nuxt.js) for my website frotend via "Software > Setup Node.js App" in my cPanel account and linked it to my website root (example.com/).
After that, I created a subdomain called "api". Now I want to build an API PHP service (Laravel) for my website backend and place it in my "api.example.com" directory which it returns JSON from this address.
But when I visit this url, it returns my Nodejs app page which I created before for website root.
In fact, I want the "publci_html/api" folder (which is pointing to api.example.com) to be exclude from rendering via Nodejs server.
Is it possible?
Or should I commit some changes in ".htaccess" file?
Regards
I created a Nodejs app (Nuxt.js) for my website frotend via "Software > Setup Node.js App" in my cPanel account and linked it to my website root (example.com/).
After that, I created a subdomain called "api". Now I want to build an API PHP service (Laravel) for my website backend and place it in my "api.example.com" directory which it returns JSON from this address.
But when I visit this url, it returns my Nodejs app page which I created before for website root.
In fact, I want the "publci_html/api" folder (which is pointing to api.example.com) to be exclude from rendering via Nodejs server.
Is it possible?
Or should I commit some changes in ".htaccess" file?
Regards
Comment