2009-12-05 128 views
0

我已经安装的symfony沙箱1.2并通过修改这样Apache的配置创建的虚拟主机(以下这种啧http://www.symfony-project.org/askeet/1_0/en/1但我适配为沙箱显示目录是从它们的TUTS不同):symfony的沙箱和虚拟主机

了NameVirtualHost 127.0。 0.1:80

<VirtualHost 127.0.0.1:80> 
    ServerName askeet 
    DocumentRoot "c:/webserver/www/sf_sandbox/web" 
    DirectoryIndex index.php 
    Alias /sf "c:/webserver/www/sf_sandbox/web/images/sf" 
    <Directory "c:/webserver/www/sf_sandbox/web"> 
    AllowOverride All 
    Allow from All 
    </Directory> 
    <Directory "c:/webserver/www/sf_sandbox/web/images/sf"> 
    AllowOverride All 
    Allow from All 
    </Directory> 
</VirtualHost> 

而且修改了Hosts文件映射Askeet系列为127.0.0.1

它的工作原理除了symfony的罚款告诉我:

如果您在此页面看不到图片,您可能需要配置您的网络服务器 ,以便它可以访问symfony_data/web/sf /目录中的 。

事实上,我无法看到存储在c:/ webserver/sf_sandbox/web/images/sf中的任何图像与我的symfony沙箱相同,为什么?

回答

1

你的hosts文件应该是

<VirtualHost 127.0.0.1:80> 
    ServerName askeet 
    DocumentRoot "c:/webserver/www/sf_sandbox/web" 
    DirectoryIndex index.php 
    Alias /sf "c:/webserver/www/sf_sandbox/web/sf" 
    <Directory "c:/webserver/www/sf_sandbox/web"> 
    AllowOverride All 
    Allow from All 
    </Directory> 
    <Directory "c:/webserver/www/sf_sandbox/web/sf"> 
    AllowOverride All 
    Allow from All 
    </Directory> 
</VirtualHost> 

因为SF目录是在web /目录,而不是在网络/ images目录?

+0

sf是一个symfony文件,它确实在web/images中。 – programmernovice 2009-12-05 19:01:46