Best practice: folder for Stand-Alone webapp on Linux?

Probably a noob question:

I’m used to install my cgi based webapp in the /home/webappname/public_html/cgi-bin folder structure.

What would be the best location for deploying/installing a stand-alone web app with its libraties/config files on a centos server?

For your Xojo stand-alone web app, libraries, resources, etc.:

/opt/MyXojoStandAloneWebAppName/

For database and other non-static files:

/var/opt/MyXojoStandAloneWebAppName/

@Frederick Roller, thanks for your reply.

Will try this folders for deploying.