Re: Squid Alternative?

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

 



Devon Harding wrote:
     > 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.

    --



Ok, got it working, but it seems to be redirecting even the localhost. How can I get the localhost to answer and proxy all other hosts. Here is my config:


NameVirtualHost *:80
<VirtualHost *:80>
ServerName www.domain.com <http://www.domain.com>
ProxyPass / http://www.domain.com/
ProxyPassReverse / http://www.domain.com/
</VirtualHost>
<VirtualHost *:80>
ServerName webmail.domain.com <http://webmail.domain.com>
ProxyPass / http://webmail.domain.com/
ProxyPassReverse / http://webmail.domain.com/
</VirtualHost>

You need to move your local site setings into a VirtualHost container with the right servername or alias too. The first Virtualhost in the list becomes the default when you use named vhosts, unless you have one that says <VirtualHost _default_:80>

If you are testing with an IP address or a name that doesn't match, you'll hit the default.

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