Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
ProxyRequests Off
ProxyPass /time ajp://10.0.0.1:8009/
ProxyPassReverse /time ajp://10.0.0.1:8009/
getting suicidal Was also thinking already to do some with some rewrite engine, but aaaah
This is not what I've posted 2 posts ago. I've posted this one:
Code:
ProxyRequests Off
ProxyPass /time ajp://localhost:8009/time
ProxyPassReverse /time ajp://localhost:8009/time
Note the difference in the tomcat URI. You have to include the context where you've deployed your app (/time).
Also note that you can replace the ajp protocol with http (and change the tomcat listening port accordingly)
Code:
ProxyRequests Off
ProxyPass /time http://localhost:8080/time
ProxyPassReverse /time http://localhost:8080/time
In any case restart apache and clear your browser cache before visiting http://time.domain.local/time to see what you get
[Fri Feb 03 15:33:15 2012] [warn] proxy: No protocol handler was valid for the URL /time. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.
Ok, in host-manager app for tomcat I had time.domain.local set-up
I removed this and now when I navigate to http://time.domain.local/time I get my app running
Now I need to move it only to http://time.domain.local and am happy!
At least does it work with the reverse proxy setup? Looking for the mod_jk debug logs you posted, I've found some bug reports, so maybe it's a bug in debian mod_jk package.
So if it works with the reverse proxy then you could stay with it
At least does it work with the reverse proxy setup? Looking for the mod_jk debug logs you posted, I've found some bug reports, so maybe it's a bug in debian mod_jk package.
So if it works with the reverse proxy then you could stay with it
Regards
yeah, works with reverse proxy, I stick with it
I just want to move it to top level
tried it with
Code:
ProxyRequests Off
ProxyPass / ajp://10.0.0.1:8009/time
ProxyPassReverse / ajp://10.0.0.1:8009/time
but that does not work - for whatever idea :<
edit: I got 404 message
Code:
type Status report
message /timetime/
description The requested resource (/timetime/) is not available.
ProxyRequests Off
ProxyPass / ajp://10.0.0.1:8009/time/
ProxyPassReverse / ajp://10.0.0.1:8009/time/
Or see my post #20 above. In this case you need to deploy your app and the "/" context.
Trailing slashes worked
Apparently the devs have put a /time subdirectory into the project which gets aswell translated and then the project does not work, but that is another issue.
THANK YOU SO MUCH FOR YOUR HELP! Really appreciated
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.