Re: Squid Alternative?

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

 



Devon Harding wrote:

     >
     >     You can only do this for http, where the host name is passed
    in a header
     >     from the client.  Apache can do it if you create named
    virtual hosts
     >     that use the ProxyPass directive or a RewriteRule with the
    [P] flag to
     >     proxy the requests to a backend server.  You'll also need a
     >     ProxyPassReverse directive configured to fix redirects issued
    by the end
     >     server.
     >
     >
     > Maybe thats what I need to do, as I need for the same server
    doing the
     > proxying to accept http request as well

    Yes, apache can sort this out itself.  If anything else accepts port 80
    you'd have to also have a special case to redirect even the local host,
    perhaps to apache on an alternate port.



Great...This is what I have in Squid now.  What is the equivalent in Apache?

httpd_accel_port 80
httpd_accel_host virtual
httpd_accel_with_proxy on
httpd_accel_uses_host_header on


The proxy documentation is here:
http://httpd.apache.org/docs/2.0/mod/mod_proxy.html

But you basically just need something like this as a vhost.
<VirtualHost *:80>
ServerName  only_one_name_can_go_here
ServerAlias  this_can_be_a_list
ProxyPass / http://backend.example.com/
ProxyPassReverse / http://backend.example.com/
### other options can go here...
</VirtualHost>

--
  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