搜诶符合你 发表于 2017-1-9 08:13:12

关于symfony 域名 apache文件的配置

在apache配置文件http.conf的结尾加入下面的代码,
注意路径的不同

<VirtualHost *:80>
ServerName myapp.example.com
DocumentRoot "/home/steve/myproject/web"
DirectoryIndex index.php
Alias /sf /$sf_symfony_data_dir/web/sf
<Directory "/$sf_symfony_data_dir/web/sf">
    AllowOverride All
    Allow from All
</Directory>
<Directory "/home/steve/myproject/web">
    AllowOverride All
    Allow from All
</Directory>
</VirtualHost>
页: [1]
查看完整版本: 关于symfony 域名 apache文件的配置