LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   *BSD (https://www.linuxquestions.org/questions/%2Absd-17/)
-   -   Squid statistics via browser - connection aborted (https://www.linuxquestions.org/questions/%2Absd-17/squid-statistics-via-browser-connection-aborted-851539/)

noigan 12-21-2010 03:37 AM

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.

bathory 12-28-2010 08:42 AM

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

noigan 12-29-2010 07:21 AM

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.

bathory 12-29-2010 09:07 AM

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

Regards


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