Re: What is the easiest way to set up a localhost web server?



On 2005-12-16, Chris Barts <puonegf+hfrarg@xxxxxxxxx> wrote:

> I am running Fedora Core 4.
>
> I have modified my local /etc/hosts file so that the names of many hosts
> that serve up ads now resolve to 127.0.0.1. Thing is, the lack of response
> from my own machine when a browser requests content from port 80 causes
> Opera to hang. Since I apparently cannot force Opera to time-out a request,
> the most elegant solution seems to be to get my computer to serve up some
> content to the brain-damaged browser.
>
> (I like using Opera for some things, so simply not using it isn't an option
> for me.)
>
> Setting up Apache seems like overkill for something this simple, but I can't
> think of any other way to do it.

Forget about the hosts file method and use privoxy instead
(http://www.privoxy.org)

Privoxy is much more effective and easier to maintain than a hosts file.


--

John (john@xxxxxxxxxxx)
.



Relevant Pages

  • Re: How to restore connection with hosts file?
    ... software called Privoxy.) ... Unfortunately hosts still appears not to be "connected". ... How do I check and re-instate the normal hosts file functionality? ... When you run ipconfig /displaydns does it display the contents of the hosts ...
    (microsoft.public.windows.server.dns)
  • Local Time
    ... Can NTP be configured to serve the local time to hosts on our network? ...
    (comp.protocols.time.ntp)
  • Re: ICMP attacks - What to do?
    ... ping attacks are not to gain access to your hosts... ... its to render them useless to serve content to the people who WANT to see ...
    (comp.security.firewalls)

Loading