Petit up, je n'ai toujours pas la solution :s
Bien le bonjour,
je viens vers vous car j'ai besoin d'aide et une journée passé en compagnie de M Google n'a pas fait avancé mon souci...
Mon souci est le suivant :
J'ai une (bientôt plusieurs) application qui tourne sur ma debian (squeeze).
Pour faciliter l'accès de cette dernière aux utilisateurs, j'aimerais faire pointé mon nom de domaine sur cette application.
Actuellement :
-
J'ai un tomcat installé avec un apache
-
mon application est accessible à une adresse semblable à celle si : http://helloworld.com:8080/application
-
j'ai installé les modules proxy / proxy_http / proxy_html
-
j'ai un sous-domaine qui est semblable a celui-ci : application.helloworld.com
-
j'ai créé un virtualhost sous apache comme suit :
<VirtualHost :80>
ServerName application.helloworld.com
ProxyRequests Off
ProxyPreserveHost On
<Proxy >
Order deny,allow
Allow from all
</Proxy>ProxyPass / http://helloworld.com:8080/application ProxyPassReverse / http://helloworld.com:8080/application <Location /> Order allow,deny Allow from all </Location></VirtualHost>
-
j'ai configuré un host sur server.xml de tomcat comme suit :
<Host name="helloworld.com" appBase="/var/lib/tomcat6/vhosts/helloworld.com/webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Alias>www.helloworld.com</Alias>
</Host>
Mais la redirection ne fonctionne pas, l'application étant pour correctement accessible à l'adresse suivante :
http://helloworld.com:8080/application
Mais quand je tape application.helloworld.com je tombe sur un 404 (envoyé par tomcat)
Merci par avance pour votre aide
Orijin
3 réponses
Hello,
Je ne connais pas la configuration de Tomcat, mais voilà ce que j'ai trouvé sur l'internet:
http://stackoverflow.com/questions/2607922/apache-tomcat-proxypass-virtualhost-context-path
http://tomcat.apache.org/tomcat-6.0-doc/proxy-howto.html
@+
Merci, mais j'ai déjà parcouru à peu près tout ce qu'il y a sur le sujet.
Et c'est ce que j'ai fait sauf que ça marche pas. Le problème semble être connu mais je n'arrive pas à le résoudre.
Je vais tenter de le résoudre...