I read about Zend_Controller_Router_Route_Hostname, but i havent idea how.
i try to use it, zend documentation. But when i try to open someoneusername.localhost/ my browser dont found nothing.( Oops! Google Chrome could not find … ).
i verified my .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]
and vhost config
<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>
hosts file
127.0.0.1 localhost
please someone help me.
Assuming everything else has been configured correctly, you’ll want to change your VirtualHost Directive:
to
and then restart apache.
I’m afraid you’re out of luck with the hosts file (wildcards unsupported)
See the link for alternatives.