Home » Zend Framework 2 » Zend Framework 2 Server support with multiple Hosts

Zend Framework 2 Server support with multiple Hosts

Zend Framework 2 Server support with multiple Hosts
Enabling multiple host functionality on one Server
Syntax: subdomain.localhost
we need to take a look to our
vhosts-File and httpd.config: and add theese Lines.

<Directory „z:/xampp/htd_step“>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

<Directory „z:/xampp/htdocs“>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

NameVirtualHost 127.0.0.1
<VirtualHost 127.0.0.1>
ServerName localhost
DocumentRoot „d:/xampp/htdocs/public“
SetEnv APPLICATION_ENV „development“
<Directory z:/xampp/htdocs/public>
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

<VirtualHost 127.0.0.1>
ServerName step.localhost
DocumentRoot „z:/xampp/htd_step“
</VirtualHost>

 

 

Updating the hostfile
127.0.0.1 localhost
127.0.0.1 zf2.localhost
127.0.0.1 step.localhost

Print Friendly

Schreib einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind markiert *

*
*