|
Home > Archive > Apache Server configuration support > January 2007 > Configure Apache like godaddy's free web hosting to always show a banner on top
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Configure Apache like godaddy's free web hosting to always show a banner on top
|
|
| Anthony Smith 2007-01-25, 1:21 pm |
| Could anyone tell me how I could do this?
If you go to a go daddy hosted website that they host for free, you see
those ads up top. How would I do the same thing for any sites/pages on
my apache web server?
| |
| shimmyshack 2007-01-26, 1:41 am |
|
On 25 Jan, 14:52, "Anthony Smith" <mrsmi...@hotmail.com> wrote:
> Could anyone tell me how I could do this?
>
> If you go to a go daddy hosted website that they host for free, you see
> those ads up top. How would I do the same thing for any sites/pages on
> my apache web server?
look at rewrites in the apache docs, then rewrite every request to a
script that sends ads and then the data from original request.
google for rewrites and "auto prepend" php allows you to automatically
prepend a file while requesting another - if you dont use php though
and want a pure apache solutions there are tutorials on how to do this.
You could (with a bit of jiggery-pokery) use the
Options +Indexes -Includes
HeaderName HEADER.html
ReadmeName README.html
in conjunction with rewrites, or a naming convention.
I'm being deliberately vague, it's not really an apache config issue,
anf the tutorials for auto prepend rewriting are out there.
| |
|
|
| shimmyshack 2007-01-26, 1:20 pm |
|
On Jan 26, 2:53 pm, "Ottavio Caruso" <pr0f3ss0r1...@yahoo.com> wrote:
> On Jan 25, 2:52 pm, "Anthony Smith" <mrsmi...@hotmail.com> wrote:
>
>
>
> Ottaviohttp://www.pledgebank.com/boycottvista
I feel I must point out that this type of advertising is terribly easy
to turn off, so if you allow the user to make his/her own webpages,
they can write a few lines of javascript to switch off your ads.
There are tutorials on that too! (probably - I havent actually looked)
|
|
|
|
|