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.
Thanks for the help, but what I am using are test pages at the moment. So it would be better if I could get mod_proxy_html to work so that things will go well when the front end server is deployed and I may not be around if other servers need to be proxied. I'm willing to put the time in to get it to work!
The html pages are not mine to modify, though I will ask about it!
you blatantly do not understand what I'm saying. Please re read my comments as you've read them wrong.
look at the html code to see what pages are being requested - you said things were broken, go work out why and how to PROXY so that they are not broken.
do not rewrite the html unless it is UTTERLY unavoidable.
Using the following configuration the server still doesn't return the images when the final "/" is left out of the url in a web browser. When the final "/" is included images load fine.
This is what I have configured in 000-default now:
where did images come into the equation? as above, if you just have issues with individual objects on a page, look at the source to see what's being requested for more information to help you.
All I want to do is make it so that if I don't include the "/" at the end of the address when entered in a web browser, I'll still get the page to display. When the "/" is included at the end it works perfectly! Images load just fine.
192.168.0.2/site1 = No Images
192.168.0.2/site1/ = Images
Why? This is the only problem I'm having. I don't see what looking at the html will do for me considering it works when the "/" is included at at the end of the url.
It's very unclear what is not working, one minute it's the "page" and then it's "images". if you have a page and the *PAGE* has successfully loaded, but you have broken content on the page, then clearly there is a difference between how you're calling the page, and how the page is referring to the images.
Where you have no images, I would guess that if you look at the code you'll see something like "<img src=bob.gif />" And in this case, the request that ends up going to the back end server would be site1bob.gif compared to site1/bob.gif. Does this finally show why you should be actually LOOKING at what is being requested?? Are you looking in the log files on the back ends to see a pile of 404s?
The problem that I am currently having is that the images on the page only load when the url is typed in as http://192.168.0.2/site1/ and not http://192.168.0.2/site1. Everything else is working perfectly. I created an index.html file that points to these FQDNs with the full url, and that works perfectly. All I have to do is type http://192.168.0.2 into the web browser and I can reach each site without trouble using links.
I would like to be able to reach these sites by typing http://192.168.0.2/site1 into the web browser. This will not work. Only when I enter http://192.168.0.2/site1/ into the web browser does it work. I don't understand why?
This is one of the Image file I am trying to get to work:
<img name='rtmc_image' alt='rtmc_image' src='.?command=Image&screen=Current' border='0' usemap='#imagemap'>
I just don't understand. Even if I knew what was being requested, I wouldn't know what to do with it...
Ignore everything else I have posted in this thread!!
before the proxypass
so when a request for just the /site1 uri comes in, apache adds a slash and then off it goes to the other server with a slash on the end.
Thanks again for the help. The first example didn't work for me though and I don't have mod_rewrite. I tried to enable it with a2enmod mod_rewrite, but it says it doesn't exist. What would I have to download?
You really don't have it? It's a totally standard apache module, a normal install always has it. It's probably not enabled by default, but it really should be there.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.