LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-14-2008, 01:27 PM   #1
bin_asc
Member
 
Registered: Aug 2006
Distribution: CentOS
Posts: 35

Rep: Reputation: Disabled
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 ?
 
Old 10-14-2008, 04:04 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,384

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
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?
 
Old 10-14-2008, 04:26 PM   #3
bin_asc
Member
 
Registered: Aug 2006
Distribution: CentOS
Posts: 35

Original Poster
Rep: Reputation: Disabled
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.
 
Old 10-15-2008, 02:25 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,384

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
so joomla is doing what is should... what do you expect to happen? Why would you want / expect Joomla to lie?
 
Old 10-15-2008, 08:42 AM   #5
bin_asc
Member
 
Registered: Aug 2006
Distribution: CentOS
Posts: 35

Original Poster
Rep: Reputation: Disabled
You`re not helping ... I`m interested in how may I hide the port referrer.
 
Old 10-15-2008, 10:32 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,384

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
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.
 
Old 10-15-2008, 10:34 AM   #7
bin_asc
Member
 
Registered: Aug 2006
Distribution: CentOS
Posts: 35

Original Poster
Rep: Reputation: Disabled
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 ?
 
Old 10-15-2008, 01:44 PM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,384

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
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.
 
Old 10-15-2008, 04:29 PM   #9
bin_asc
Member
 
Registered: Aug 2006
Distribution: CentOS
Posts: 35

Original Poster
Rep: Reputation: Disabled
Using squid does improve caching even since they are on the same machine. Loads have dropped and also load time dropped to half.

Last edited by bin_asc; 10-15-2008 at 04:30 PM.
 
  


Reply

Tags
joomla, link, port, squid


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SQUID port to port elsergio Linux - Newbie 1 07-23-2008 04:48 AM
Squid + Port Mapping? ssd26 Linux - Software 1 04-23-2007 12:13 PM
debian iptables squid - redirect port 80 to port 8080 on another machine nickleus Linux - Networking 1 08-17-2006 12:59 AM
Squid not allowing port 99 jocast Linux - Software 6 05-24-2006 01:14 PM
SQUID - Blocking port 80 tekquest Linux - Software 2 08-27-2005 06:05 AM


All times are GMT -5. The time now is 07:21 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration