MVC structure on remote server

0

I have the following directory structure in localhost :

-config
-hsapp
 |--Controllers
 |--Models
 |--Views
-public
 |--Assets
 |--Index.php
-vendor
composer.json

It is perceived that it is an MVC structure. I created a virtualhost right for the public folder, locally, and it works perfectly.

I now need to upload to a folder on a web server, (domain.com/folder) but I do not know how to configure it so that when entering the folder, access the public so that it is the root folder, because the system works with routes.

Can anyone give birth to a beginner?

Thank you very much.

    
asked by anonymous 20.03.2017 / 23:18

1 answer

1

You would have to set the Root of the document as the public folder, eg: Cpanel Panel

So if the site were accessed like tmp.domain.com or domain.com/tmp it would actually be accessing the public_html / tmp / public directory

    
20.03.2017 / 23:58