Quantcast
Channel: Active questions tagged symfony4 - Stack Overflow
Viewing all articles
Browse latest Browse all 3924

Virtual hosts configuration with Symfony

$
0
0

I have a problem with my virtual host on WAMP server. I tested projects that I worked on before, and they all work.

When I hit my localhost name of the project

127.0.0.1 project.local

defined in my hosts file, it returns

This page isn’t working

It's my first Symfony 4 project and I think my virtual hosts configuration may not be right.

This is my project skeleton:

iproject-skeleton-image

And my virtual host config:

<VirtualHost *:80>
     ServerName project.local
     DocumentRoot "${INSTALL_DIR}/www/project/public"
     SetEnv APPLICATION_ENV "development"<Directory "${INSTALL_DIR}/www/project/public/">
           AllowOverride All
           Order Allow,Deny
           Allow from All
           <IfModule mod_rewrite.c>
             Options -MultiViews +FollowSymlinks
               RewriteEngine On
               RewriteCond %{REQUEST_FILENAME} !-f
               RewriteRule ^(.*)$ index.php [QSA,L]
           </IfModule>
       </Directory>
     </VirtualHost>

Viewing all articles
Browse latest Browse all 3924

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>