我想将我的2个应用程序置于在线状态。我使用apache和vhost。我的2个应用程序具有相同的ip和相同的端口,但名称不同。问题在于sagapec.local和ebordereau.local导致的应用程序与sagapec相同,我不明白为什么。
如果有人有想法或文档向我提出建议,我很感兴趣。
httpd.conf
Include "D:\applications\Apache2\conf\vhostPEC.conf"
Include "D:\applications\Apache2\conf\vhostEBORD.conf"
vhostPEC.conf
<VirtualHost *:81>
DocumentRoot "D:/www/SAGAPEC/public"
SetEnv APPLICATION_ENV "development"
ServerName sagapec.local
<Directory "D:/www/SAGAPEC/public">
Options FollowSymLinks ExecCGI
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
vhostEBORD.conf
<VirtualHost *:81>
DocumentRoot "D:/www/ws-ebordereau/public"
SetEnv APPLICATION_ENV "development"
ServerName ebordereau.local
<Directory "D:/www/ws-ebordereau/public">
Options FollowSymLinks ExecCGI
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
主机
127.0.0.1 sagapec.local
127.0.0.1 ebordereau.local