【发布时间】:2012-01-31 23:56:41
【问题描述】:
我读到了 Zend_Controller_Router_Route_Hostname,但我不知道怎么做。 我尝试使用it、zend documentation。但是当我尝试打开someoneusername.localhost/时,我的浏览器什么也没找到。(哎呀!谷歌浏览器找不到...)。
我验证了我的 .htaccess
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
和虚拟主机配置
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName localhost
DocumentRoot "/var/www/zendtest/public"
<Directory "/var/www/zendtest/public">
Options Indexes FollowSymLinks MultiViews
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error-localhost.log
CustomLog ${APACHE_LOG_DIR}/access-localhost.log combined
</VirtualHost>
主机文件
127.0.0.1 localhost
请有人帮助我。
【问题讨论】:
标签: php zend-framework .htaccess apache2 router