Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi, i have redirected Apache to tomcat webapp using mod_proxy.The redirection was successful but when i open my my website and click on some images ,they show me 404 error saying "requested source is unavailable".On Apache website everything other links works fine but only images dont work.But when i open through tomcat, the images also work fine.
Cant find anything in logs regarding this.
Details:
Server : RHEL 5
Apache 2.2
Tomcat 7.0.37
Mysql 5.5
jdk ver : 7
Selinux : disabled
Any help would be greatly appreciated.
Thank you..
You haven't replied my other questions of previous post.
Are you facing this problem for particular extention image like jpeg, gif, png or all types of image files?
When you type path of the image, does it open?
My problem has been solved ,i tried the 301 redirect instead of mod_proxy and now all images working fine and links are also working fine.
But i have a small problem,while redirecting ,the url shows the 8080 port publicly,i dont want to show that ,could you please tell me how can i mask that port?
I tried masking through mod_rewrite but didn't work out.
You means it shows port name with your domain name?
because if it shows with localhost like http://localhost:8080
That is how the browsers work. They assume port 80 for http unless you specify a different port. If you specify different port, then the port number must be specified in the url.
But if it shows with domain name then this is a problem, confirm first.
Previously when i was doing redirection through proxy,this was not happening but as you know i had problem with images in that so i removed it and applied the code in the virtual host.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.