LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 12-21-2010, 03:37 AM   #1
noigan
LQ Newbie
 
Registered: Sep 2010
Posts: 9

Rep: Reputation: 0
Squid statistics via browser - connection aborted


Greetengs!

For some days I cannot access the Squid statistics page from a remote computer: the browser gives the "Connection aborted" error message. The proxy itself is working though. As I understand, the problem is in apache. Some information and command calls results:

Code:
#/user/local/sbin/apachectl status

Alert! Unable to connect to remote host
lynx: can't access startfile http://localhost/server_status

#/user/local/sbin/apachectl status

Alert! Unable to connect to remote host
lynx: can't access startfile http://localhost/server_status

#/user/local/sbin/apachectl configtest
Syntax OK

#httpd -S
Virtual host configuration:
172.16.0.1:80 rtmc.dom (/usr/local/etc/apache21/httpd.conf:1051)
172.16.0.1:81 squid.dom (/usr/local/etc/apache21/httpd.conf:1072)
-my_dns_ip_:80 rtmc.dom (/usr/local/etc/apache21/httpd.conf:1051)
Syntax OK.
error_log:
Code:
...
[warn] pid file /usr/local/apache2/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
...
[notice] Apache/2.0.59 (FreeBSD) PHP/5.2.5 configured -- resuming normal operations
...
FreeBSD 6.2 i386
Apache 2.1.9
php 5.3.3
squid 2.5.stable.14

Could anyone please help me in solving this?

Best regards,
Aleksey.

Last edited by noigan; 12-21-2010 at 03:39 AM.
 
Old 12-28-2010, 08:42 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

I don't know how the apache mod_status can be used to display the squid statistics.
Anyway the URL used by apachectl status is wrong. It should be http://localhost/server-status and not http://localhost/server_status (i.e. that is a dash "-" and not underscore "_" between the words server and status). So check the /user/local/sbin/apachectl script and make the appropriate change in the URL.

Note also that from the error_log:
Quote:
[notice] Apache/2.0.59 (FreeBSD) PHP/5.2.5 configured -- resuming normal operations
looks like you're running apache 2.0.59 and php-5.2.5, while you said that you're running Apache 2.1.9, php 5.3.3
 
Old 12-29-2010, 07:21 AM   #3
noigan
LQ Newbie
 
Registered: Sep 2010
Posts: 9

Original Poster
Rep: Reputation: 0
bathory, thanks for the reply!

I actually tried to replace the inderscore with a dash - the result is the same.

And I am thinking that the problem is with Apache because sometimes Squid lets me in to the login page, but when going further I see the "500 Internal server error" message.
 
Old 12-29-2010, 09:07 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
If you get a 500 Internal Server Error, looking at the apache httpd-error.log should tell you where the problem is

Regards
 
  


Reply



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
cvs [login aborted]: reading from server: Connection reset by peer fisher68 Linux - Networking 0 05-26-2010 12:06 PM
Are there any browser statistics for LQ? MartinN LQ Suggestions & Feedback 3 09-21-2004 08:34 AM
Squid statistics Padre Linux - Networking 0 12-14-2003 01:56 AM
Squid statistics Padre Linux - Software 4 12-11-2003 01:09 PM
problem with squid cache statistics conosciani.m Linux - Security 1 01-15-2003 07:29 AM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 05:43 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration