PDA

View Full Version : does DA suitable for free hosting?



neorder
05-10-2004, 09:57 AM
such as is there a way that can put advertisement on all website with the use of directadmin?

thanks.

nobaloney
05-10-2004, 04:36 PM
DA uses apache 1.x for webhosting. If you can find any tutorials for doing it using apache, you can probably modify them to work on a DA-powered system.

Though it's reallly outside the scope of DA, here's how I'd do it:

I'd set up my template directories so all the newly-created public_html directories included files to create a set of two frames. In one of the frames I'd put the advertising; in the other I'd put a call to the contents of another directory, say "actual_contents".

Then I'd change the login-user's root directory to be public_html/actual_contents.

You could script DA to do the latter automatically as part of domain creation. However note that unless you create your own skin, your user will be able to make changes using DA to get around it.

Jeff

ctnchris
05-12-2004, 09:07 AM
this can probably be done with mod_rewrite. Just make a template that includes their page but plops the banner in, and have it push the file through that page instead of directly handling it.

http://httpd.apache.org/docs/misc/rewriteguide.html

nobaloney
05-12-2004, 09:10 AM
mod_rewrite will do the job, Chris, but I don't see how to integrate it with DirectAdmin easily.

Jeff

ctnchris
05-12-2004, 09:35 AM
Originally posted by jlasman
mod_rewrite will do the job, Chris, but I don't see how to integrate it with DirectAdmin easily.

Jeff

He could modify the httpd.conf template I believe, to have the mod rewrite in it, and have the templates in a directory apache can use. Then disable changing it using a .htaccess in the main apache config, so there would be no way the user could change it.

nobaloney
05-13-2004, 08:48 AM
Wouldn't that in effect prevent the user from changing anything using .htaccess?

Of course in free hosting, that might be a good thing.

Jeff

jdlitson
05-13-2004, 11:43 AM
Why not make it easier on your self and just charge $1.00 per month?

Give them a few megs of space, bandwidth, and an e-mail address or two.

This way you are guaranteed to make something and your customer will be happy they don't have a banner. And to avoid paying the credit card transaction fee every month you could make 6 month or 12 month plans.
This is a very low price anyone can afford.

Especialy with the low cost of buying a domain these days.
Why would anyone want a name like www.mysite.yoursite.com

Then if they want tech-support they can eaither come to this forum or pay a bit extra to get support directly from you.

-Jason

jmstacey
05-13-2004, 01:01 PM
Or do something similar to breezeland before they turned into a scam with a control panel and rotating links with questions (so show that they actually clicked the link) and require users to login and click the banners so many times per week etc.

That way you wouldn't have to mess with everybodies websites and you would just use a simple banner system