LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-15-2014, 04:18 PM   #1
don boyage
LQ Newbie
 
Registered: May 2014
Posts: 7

Rep: Reputation: Disabled
Squid Proxy Server error The request URL cannot be retrieved


Hi I'm new a newbie in linux and I've setup a Squid Proxy Server.. Squid is running ok but when I access it I got error:

The following error was encountered while trying to retrieve the URL: /
Invalid URL
Some aspect of the requested URL is incorrect.
Some possible problems are:
Missing or incorrect access protocol (should be http:// or similar)
Missing hostname
Illegal double-escape in the URL-Path
Illegal character in hostname; underscores are not allowed.
Your cache administrator is root.

-----------------------------------------------------
Below is my squid.conf

#
# Recommended minimum configuration:
#
acl manager proto cache_object
acl localhost src 127.0.0.1/32 ::1

acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1

# Example rule allowing access from your local networks.
# Adapt to list your (internal) IP networks from where browsing
# should be allowed
acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
acl localnet src fc00::/7 # RFC 4193 local private network range
acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged) machinesi

acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT

#
# Recommended minimum Access Permission configuration:
#
# Only allow cachemgr access from localhost
http_access allow manager localhost
http_access deny manager

# Deny requests to certain unsafe ports
"/etc/squid/squid.conf" 79L, 2541C
-------------------

and here are the logs:
[root@ZyXEL18 etc]# vi /etc/squid/squid.conf
[root@ZyXEL18 etc]# tail -f /var/log/squid/cache.log
2014/05/15 16:41:50| Max Swap size: 0 KB
2014/05/15 16:41:50| Using Least Load store dir selection
2014/05/15 16:41:50| Set Current Directory to /var/spool/squid
2014/05/15 16:41:50| Loaded Icons.
2014/05/15 16:41:50| Accepting HTTP connections at [::]:3128, FD 14.
2014/05/15 16:41:50| HTCP Disabled.
2014/05/15 16:41:50| Squid plugin modules loaded: 0
2014/05/15 16:41:50| Adaptation support is off.
2014/05/15 16:41:50| Ready to serve requests.
2014/05/15 16:41:51| storeLateRelease: released 0 objects
--------------

I've done so many changes in squid.conf but it did not work. I've removed those that I've added and left on what I know should work. Please help I'm running out of ideas.. thanks
 
Old 05-16-2014, 02:14 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
Quote:
Hi I'm new a newbie in linux and I've setup a Squid Proxy Server.. Squid is running ok but when I access it I got error:

The following error was encountered while trying to retrieve the URL: /
<snip>
Please note that squid is a proxy server, so you cannot access it with your browser like a webserver, using a URL like: http://squid-server:3128
You should configure your browser to use squid as a proxy in order to visit sites on the net.

Regards
 
Old 05-26-2014, 04:11 PM   #3
don boyage
LQ Newbie
 
Registered: May 2014
Posts: 7

Original Poster
Rep: Reputation: Disabled
Hi Bathory,

I'm late reply haha.. there's a lot going on with me from the last week. and you are correct. thank you for the information.
 
  


Reply


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Squid gives "The requested URL could not be retrieved" on particular query. ZackFair Linux - Software 5 02-18-2013 04:09 AM
NTLM request is blocked by squid proxy server.... guruhaasan Linux - Newbie 0 09-06-2012 07:33 AM
Redirect one url to other squid proxy server. bhimarora Linux - Newbie 1 07-05-2010 04:46 AM
Forcing http request through Squid Proxy Server(Transparent proxying) ochienged Linux - Server 5 06-02-2009 10:54 AM
ERROR The requested URL could not be retrieved While trying to retrieve the URL: /re Niceman2005 Linux - General 1 06-29-2005 09:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:17 AM.

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