【发布时间】:2015-12-15 06:07:41
【问题描述】:
我的 phalcon 应用程序的 vhost 配置存在问题。我希望将localhostaddress 指向var/www/html/public。
<VirtualHost *:80>
ServerAdmin admin@example.host
DocumentRoot "/var/www/html/public"
DirectoryIndex index.php
ServerName localhost
ServerAlias localhost
<Directory "/var/www/html/public">
Options All
AllowOverride All
Allow from all
</Directory>
<Directory "/var/www/html">
Options All
AllowOverride All
Allow from all
</Directory>
</VirtualHost>
当我转到localhost 时,我看到"Mod-Rewrite is not enabled",但是当我输入localhost/public 时,它进入了我想成为root 的公共目录。
【问题讨论】:
-
您是否使用
Phalcon-devtools创建了您的项目?
标签: apache mod-rewrite phalcon vhosts