The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
Scripts / handy tips
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Previous Message  |  Next Message 
 Re: Setting up Free Web Host ing service
Author: Shaun McNamer 
Date:   17-08-03 04:19

I've done a setup with FTP where, as described before every user is chrooted to their home directory, and then I setup aliases with Apache to reference their files. Works great.

I've also noticed that when you make the aliases you should be sure to include a blank directory in the default Apache directory of the same name, that way people will be able to get to it with an incomplete URL (missing the last slash) like won't work unless you have an empty whatever directory. The people would simply get a 404. At least that's how things have been for me.

mike wrote:
> You should chroot your users. For example if you are
> using the default ftpd you can add a group in the
> /etc/ftpchroot file like this
> @wwwuser
> And if you add a hostingaccount add him to the wwwuser and he
> will be chrooted. It is also possible to add every new user.
> But managing a group is easier then a lot of users.

 Reply To This Message  |  Forum List  |  Flat View   Newer Topic  |  Older Topic 

 Topics Author  Date
 Setting up Free Web Host ing service   new
Jigz Nep 11-06-02 02:36 
 Re: Setting up Free Web Host ing service   new
mike 17-02-03 23:07 
 Re: Setting up Free Web Host ing service   new
Shaun McNamer 17-08-03 04:19 
 Re: Setting up Free Web Host ing service   new
shri 18-12-03 12:46 
 Re: Setting up Free Web Host ing service   new
el_kab0ng 06-10-04 14:50 
 Re: Setting up Free Web Host ing service   new
Jim Keller 15-12-04 06:24 

 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Remember my login:
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum