M
M
Maxim Savichev2015-08-21 13:39:48
symfony
Maxim Savichev, 2015-08-21 13:39:48

Deploy Symfony2. How to fix the routing and remove the display of contents in the directory?

I posted my project on symfony2 for hosting. Everything worked until the moment I decided to change the root directory not to the symphony project itself, but only to the web via a symlink.
Symlink: www -> symfony_project/web
Problems:
1. When I run the root directory, I get the contents of the web folder. In .htaccess I registered DirectoryIndex app.php.
2. Routing does not work after a symlink.
PS Worth VPS apache2 debian

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Savichev, 2015-08-23
@MaksimSa

1. I solved the problem with .htaccess, it was necessary to change AllowOverride None to AllowOverride All in the apache2 etc/apache2/sites-available settings.
2. Switched to CentOS. No more such problem

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question