Différents sites en fonction du port
Bonjour,
J'ai un domaine domain.tld et je voudrais rediriger vers différents sites selon le port utilisé. Évidemment, ça ne fonctionne pas.
J'utilise apache2, et j'ai dans port.conf
Ensuite, dans sites-available/default, j'ai:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| #
# domain.tld par le port 80
#
NameVirtualHost *:80
NameVirtualHost *:9000
<VirtualHost *:80>
ServerAdmin admin@domain.net
ServerName domain.tld
DocumentRoot /opt/folder/public
<Directory "/opt/folder/public/">
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<Proxy balancer://mongrel_cluster>
BalancerMember http://127.0.0.1:8000
BalancerMember http://127.0.0.1:8001
BalancerMember http://127.0.0.1:8002
Allow from localhost
</Proxy>
ProxyPass / balancer://mongrel_cluster/
ProxyPassReverse / balancer://mongrel_cluster/
</VirtualHost> |
Ce virtualHost fonctionne parfaitement.
En revanche, le suivant je n'arrive pas y accéder:
Code:
1 2 3 4 5 6 7 8 9 10
| #
# domain.tld par le port 9000
#
<VirtualHost *:9000>
ServerAdmin admin@domain.net
ServerName domain.tld
DocumentRoot /opt/folder2/public
ProxyPass / http://localhost:8100/
ProxyPassReverse / http://localhost:8100/
</VirtualHost> |
Voilà si quelqu'un voit d'où vient le problème, merci d'avance, car là j'en peux plus.
a+