What steps should I follow to set up a virtual host in Symfony? I use xampp. Following a tutorial I have seen that I must add this in httpd.conf (in my case it seems that I must do it in httpd-vhosts.conf):
NameVirtualHost *:80
<VirtualHost 127.0.0.1:80>
DocumentRoot "C:\xampp\htdocs\mySymfonyProjectV2\Symfony\web"
DirectoryIndex app.php
<Directory "C:\xampp\htdocs\mySymfonyProjectV2\Symfony\web">
AllowOverride All
Allow fromm All
</Directory>
ErrorLog /var/log/apache2/error_mySymfonyProjectV2.log
</VirtualHost>
But this gives me a problem and that is that restarting Apache no longer starts giving the error
Error: Apache shutdown unexpectedly.
17:07:16 [Apache] This may be due to a blocked port, missing dependencies,
17:07:16 [Apache] improper privileges, a crash, or a shutdown by another method.
17:07:16 [Apache] Press the Logs button to view error logs and check
17:07:16 [Apache] the Windows Event Viewer for more clues
17:07:16 [Apache] If you need more help, copy and post this
17:07:16 [Apache] entire log window on the forums
What steps should I take to create a virtual host correctly?