接触Symfony,下载了装在wamp服务器上。目录结构如下
www/ <- your web root directory
    Symfony/ <- the unpacked archive
        app/
            cache/
            config/
            logs/
        src/
            ...
        vendor/
            ...
        web/
            app.php
            ...
然后启动http://localhost/Symfony2/web/app_dev.php/demo/hello/World 可以在网页显示,
下面就有问题出现:
我在apache的extra/httpd-vhosts.conf中配置虚拟主机如下:
<VirtualHost *:80>
DocumentRoot "C:/wamp/www/symfony2/web/"
         ServerName symfony2.com
         DirectoryIndex app.php    # This should be omitted in the production environment
     SetEnv APPLICATION_ENV development    <Directory "C:/wamp/www/symfony2/web/">
        Options Indexes MultiViews FollowSymLinks
         AllowOverride All
Allow from all
  </Directory>
  </VirtualHost>
我在windows下添加了symfony2.com主机到本地,然后也在httpd.conf中
# Virtual hosts
Include conf/extra/httpd-vhosts.conf 
这里去掉了#号,
但是运行http://symfony2.com/demo/hello/World就是不成功,检查了半天不知道什么问题,将虚拟主机配置取消就没问题,但真的不知道httpd-vhosts.conf有什么问题,求各位大侠指点apachesymfony