What actions should be implemented to improve security in Symfony?

0

I have developed an application in Symfony, with which I have no functional problems, more if in security according to some suggestions of infrastructure coordination.

The point is that from the production server you can access the base directories of the project: symfony, vendor, app, var / sessions etc ...

Which can be corrected with a .htaccess surely, (although I do not know the implications of the creation of these .htaccess the communication between the modules of the Framework)

Someone can recommend what steps should be taken to move the application to the production environment in such a way that it can be guaranteed that users (logged in and not logged in) can not access the libraries and source directories of the project

Thank you very much for your help, It's my first project in the framework

    
asked by Diego Fernando Barrios Olmos 10.11.2017 в 18:46
source

1 answer

0

Let's see if I can help you a little with a small checklist htaccess should not affect symfony at all as long as it's ok

  • Prevent access to .htaccess Order allow, deny Deny from all
  • Deny the file listing Options All - Indexes

Your nginx or apache should have the symfony web folder as root

    
answered by 19.01.2018 в 10:08