Re: squid as reverse proxy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2006-08-03 at 17:05 +0200, Boris Glawe wrote:

> In my squid.conf on 192.168.1.100 I have set the httpd_accel_host to 
> 192.168.1.98 an httpd_accel_port to 80, which says "forward all requests 
> on port 80 to the machine 192.168.1.98:80.
> 
> When I enter our url (http://ourname.dyndns.org/ or 
> http://<our-ip-address>/ ) in a webbrowser, which is running on machine 
> in the internet, we get the apache test page, which is configured with 
> fedora's apache installation. Thus our forwarding seems to work.
> 
> But when I enter our url in this way: http://ourname.dyndns.org/ourcms, 
> it's not the proxy that answers the request, but the browser tries to 
> contact the webserver 192.168.1.98 directly, which is of course not 
> visible in the internet.

Squid is doing the right thing.  Apache on the destination machine
is responding with a redirect because it needs a trailing slash
on the URL.   You need to look at the ServerName and
UseCanonicalName directives in your httpd.conf to make it respond
with either the name you want or the name the client used in the
redirect URL.

-- 
  Les Mikesell
  lesmikesell@xxxxxxxxx


-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux