ZF-10349: Zend_Controller_Router_Route_Hostname assemble metod does not take port for url
Description
I am working on Windows 7 with Zend Server where Apache virtual hosts are set to listen on 8080 port.
I've created application that uses modules. What I wanted to achieve is that application which runs on admin.project:8080 is using admin application module.
I've added following route settings:
resources.router.routes.admin.type = "Zend_Controller_Router_Route_Hostname" resources.router.routes.admin.route = "admin.project" resources.router.routes.admin.defaults.module = "admin" resources.router.routes.admin.chains.index.type = "Zend_Controller_Router_Route" resources.router.routes.admin.chains.index.route = ":controller/:action/*" resources.router.routes.admin.chains.index.defaults.controller = "index" resources.router.routes.admin.chains.index.defaults.action = "index"
When I accessed admin.project:8080 it seemed to be working. Except, Url view helper that generated urls in format:
http://admin.project/controller/action/...
What is missing is port - since application works on 8080.
Comments
Posted by Grayson Koonce (merrix) on 2010-09-04T17:06:33.000+0000
Can you share your virtualhost and host file entries please? I'm trying to reproduce.
Posted by Damir Mitrovic (damir.mitrovic) on 2010-09-05T23:44:22.000+0000
To configure Apache to listen on different port change in httpd.conf: Listen 80 to Listen 8080
Example virtual host that I have - httpd-vhosts.conf:
NameVirtualHost *:8080 #
VirtualHost example:
Almost any Apache directive may go into a VirtualHost container.
The first VirtualHost section is used for all requests that do not
match a ServerName or ServerAlias in any block.
#
ServerAdmin webmaster@dummy-host.example.com DocumentRoot "C:\Users\dmitrovic\Documents\svn\trunk\public" ServerName finderbackend DirectoryIndex index.php AllowOverride All Order allow,deny Allow from all #ErrorDocument 403 index.php ErrorLog "logs/project-error.log" CustomLog "logs/project-access.log" common