How to configure symfony in subdomain?

1

I have an application written in Symfony 3 that I want to publish in a subdomain. The application is currently hosted on locaweb.

My main site is this: example.com

The goal is to create a subdomain specific to this application, so it looks like: symfony .example.com.

From the hosting panel I can easily create subdomains, but they are obligatorily inside the public_html folder. This way, even though I create a subdomain, the folder is still accessible through the main site.

For example:

The main site is named example.com that points to the public_html /

The subdomain is named synfony.example.com that points to the public_html / other_project folder.

How can I ensure that even though it's in a subfolder, the content of the application is not accessible? I thought I'd create some htaccess rule for this, but I'm not sure how to make it run on the main site and be ignored on the subsite.

    
asked by anonymous 29.03.2017 / 16:58

0 answers