Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Hi,
I'm hosting people on my server (Slackware 9 with Apache 2), and they use the public_html dirrecotry to host their websites. I would like to be able to use advertisements of each user's page that is in a certain group (the non-paying group). I would like to have them be able to use their public_html like normal, and have a normal index.html file (eg, without them having to have the ad's code IN the files, with the only difference being that of each of their pages would spawn advertisements, or possibly on the pages themselves such as with google ads, that would help fund their account. I would also like to be able to turn these advertisements off for the users that make a donation, and apache's root, etc. It should also be relativly secure so they are unable to tamper with their account in some way to remove the ads. Does anybody know how I could go about doing this?
I can't get this to work with neither the root of the site or the public htmls. Apache doesn't seem to spit out any errors when it starts up, but maybe I'm installing/configuring it incorrectly, the documentation on how to configure it is a little splotchy. Could you explain what exactly I have to put in httpd.conf or any other files to get this working? My module installed into the modules dirrectory with Apache, and I tried adding different combinations of:
It looks like it is on two different lines in the docs to me. When I try to put it on one line apache complains about it on startup saying that SetOutputFilter only takes one argument, filter.
I think I finally got this to work... sort of... it seems to want to put everything twice. Why would it do that? It will inject the code that I tell it so, but it'll double up on it, so say if I tell it to inject "linux", the words "linuxlinux" will appear on the pages. Is there any way to fix this? It's prolly some stupid misconfiguration error on my part.
-- edit --
Nevermind, I got it working, thanks for the help
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.