LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Squid 2.6 and links:port issue (https://www.linuxquestions.org/questions/linux-software-2/squid-2-6-and-links-port-issue-676321/)

bin_asc 10-14-2008 01:27 PM

Squid 2.6 and links:port issue
 
Ok, I managed to install squid after many howtos.
My issue is that I have a joomla website.
Squid is listening on port 80
Apache is listening on port 81.
My problem is that joomla is detecting the URL being domain:81 and not just domain.

I`m not sure if this is squid related. Is there a setting to not forward the referrer port ?

acid_kewpie 10-14-2008 04:04 PM

what's wrong? I don't understand. you have apache on port 81 and so a web app is correctly providing links to that end. How does squid fit into this at all? are you trying to cache within the very same box as the site your serving?? what would that achieve?

bin_asc 10-14-2008 04:26 PM

Because joomla is detecting it`s under apache port 81, and it`s formatting the links accordingly.

I used vicompress which seems to be on the same manor built like squid, and it didn`t happen there.

acid_kewpie 10-15-2008 02:25 AM

so joomla is doing what is should... :confused: what do you expect to happen? Why would you want / expect Joomla to lie?

bin_asc 10-15-2008 08:42 AM

You`re not helping ... I`m interested in how may I hide the port referrer.

acid_kewpie 10-15-2008 10:32 AM

i'm not "helping" because you are not asking a valid question. Where did referrer's come into the equation?? if apache is running on port 81, the websites address IS http://domain.com:81 NOT http://domain.com, that would be WRONG. don't run squid on port 80 in the first place, it's uses port 3128 by standard, and apache uses port 80, why would you change it? don't reinvent wheels that have been running well for many many years.

bin_asc 10-15-2008 10:34 AM

I`m using squid as reverse proxy, that`s why it`s running on port 80 and apache on port 81.
I find it odd that I used the same combo but with vicompress ( from visolve.com ) running on port 80 and apache on port 81, and websites didn`t "see" the apache 81 port directly.
Clear now ? :)

acid_kewpie 10-15-2008 01:44 PM

well a reverse proxy would be on a seperate system, a box much closer to the internet within a single data centre, or another geographical location. Unless i'm not up on my theory as much as I should, having a reverse proxy on the same machine is illogical as you are just transferring the load from one process to another, not improving the systems individual state to any extent.

bin_asc 10-15-2008 04:29 PM

Using squid does improve caching even since they are on the same machine. Loads have dropped and also load time dropped to half.


All times are GMT -5. The time now is 12:15 PM.