Re: ad-supported apache proxy

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

 



Marcos Mendez wrote:
Hi, I've tried this approach but it doesn't work reliably. I've tried
replacing the start or end body, html and even head tags as I
typically use a script hosted on my adserver to serve the ads. So I
simply replaced the script with your suggestion. This approach does
work for simple sites (and my script), but go to use it for eweek.com,
google.com, or yahoo.com... the ad is nowhere to be seen. Am I missing
something?

If you want to transform markup, best to use a markup-aware filter.
mod_publisher does this kind of thing.

The alternative is to invert the task: your server serves a
standard template page, but most of that is an inclusion which
is the page originally requested.  Again, you'd want to hack
the included content (remove the <head> section), which makes
it better-suited to your own or syndicated contents rather than
general proxied contents.

--
Nick Kew

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux