LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-21-2003, 12:30 AM   #1
juggler
LQ Newbie
 
Registered: Oct 2002
Posts: 8

Rep: Reputation: 0
Question Setting up a web server on Redhat 8


Hello,

I've currently set up thttpd on a Redhat 8.0 server. It seems to be working ok.

Is there a way to set up ftp so that all files uploaded automatically get written to a users webpage? If so, how should I do it, or what files should I read documentation for?

Example: I'm joeuser. When I use ftp to upload my files to the Linux box, they should go into /usr/local/www/data/joeuser, instead of the usual place. Similarly, if I'm janeuser, my files should go into /usr/local/www/data/janeuser.

If the above isn't possible, is there open source software that will allow me to quickly set up some method for quickly uploading people's webpages?

It's only going to house my website and my roommate's, so there's not going to be too many users being hosted.

TIA
--juggler
 
Old 03-21-2003, 06:04 AM   #2
sidey
Member
 
Registered: Mar 2003
Location: Essex UK
Distribution: rh 8.0 bsd 5.0 slack 9.0 rc2 crux
Posts: 147

Rep: Reputation: 15
toddle off to freshmeat.net and get pureftp

are the users using the box as well or just web publishing?

if they are just web publishing then the way to do it is as follows

setup the users with their homedir as $pathtotheirwwwdir
set the passwd for the users
install pure-ftp
run pureftp with -A -B -E

then when the users login via ftp they will automatically be dumped into their www dir and with he -A option set they cant go anywhere else because that chroots them into that dir

Linux its better than women :P
 
Old 03-21-2003, 06:27 PM   #3
Road
Member
 
Registered: Jan 2002
Distribution: Debian Based only but have tried most others.
Posts: 82

Rep: Reputation: 15
If you give each of your roomates a user name on your box, when they FTP they should end up there. Then in your httpd.conf file you can set up your vhosts to point to the specified directory you want your buddies to use.


Once thats done you can use dreamweaver and automate the the entire proccess.

Road
 
Old 03-28-2003, 02:32 PM   #4
juggler
LQ Newbie
 
Registered: Oct 2002
Posts: 8

Original Poster
Rep: Reputation: 0
Hi sidey/Road,

Thanks for your replies.

Pureftpd works great. It was easy to set up. I ended up symlinking it to my /etc/rc3 and rc5 to auto-startup and configured the /etc/pure-ftpd.conf file to enable NoAnonymous.

Road-I'm a little baffled how to set up httpd.conf to set up vhosts.
Currently, when people connect, they connect
as
http://mydomain.com/user

Is it possible to change httpd.conf for thttpd to something like
http://user.mydomain.com?

Thanks for the help thus far.
 
Old 03-28-2003, 03:18 PM   #5
bahamat
Member
 
Registered: Mar 2003
Distribution: Debian
Posts: 158

Rep: Reputation: 30
Quote:
Road-I'm a little baffled how to set up httpd.conf to set up vhosts.
Currently, when people connect, they connect
as
http://mydomain.com/user

Is it possible to change httpd.conf for thttpd to something like
http://user.mydomain.com
Not really no. This isn't an web server based thing it's a DNS thing. If you don't really understand DNS then give up on this. If you're determined, maybe the Bind HOWTO would provide some necessary background info.
 
Old 03-31-2003, 08:59 PM   #6
Road
Member
 
Registered: Jan 2002
Distribution: Debian Based only but have tried most others.
Posts: 82

Rep: Reputation: 15
Quote:
Originally posted by juggler
Hi sidey/Road,

Thanks for your replies.

Pureftpd works great. It was easy to set up. I ended up symlinking it to my /etc/rc3 and rc5 to auto-startup and configured the /etc/pure-ftpd.conf file to enable NoAnonymous.

Road-I'm a little baffled how to set up httpd.conf to set up vhosts.
Currently, when people connect, they connect
as
http://mydomain.com/user

Is it possible to change httpd.conf for thttpd to something like
http://user.mydomain.com?

Thanks for the help thus far.


Sorry for taking so long to respond I have been very busy. Well the next poster is kinda right because it's a little bit of both. With v-hosts you can give each of your roomates entirely seperate domains or sub domains like you were asking. But each sub domain will also need a dns entry pointing to your webservers address. Here is an example of a vhost setup in /etc/httpd/conf/httpd.conf

<VirtualHost 10.0.0.1:80>
ServerName romate1.myhouse.come
DocumentRoot /home/romatesname
CustomLog logs/romate1.myhouse.org-access_log combined
</VirtualHost>

There is more to this file than you would need but I figured I should put it down. The custom log thing is optional but it's nice to keep seperate logs so you you can track your individual traffice with webalizer.

The above along with the correct DNS entry would allow you to have your roomates as subdomains instead of just directories in your current domain.

Road
 
Old 04-02-2003, 02:22 AM   #7
sidey
Member
 
Registered: Mar 2003
Location: Essex UK
Distribution: rh 8.0 bsd 5.0 slack 9.0 rc2 crux
Posts: 147

Rep: Reputation: 15
yeah i agree with road,

For the dns stuff you could use a free dns provider *cough* dyndns.org*cough* and give a roommate something like http://roommate1.ath.cx as well as this slight benefit alll the vhosts configuration will be as road said
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up own web server kirtimaan_bkn Linux - Networking 14 11-20-2005 10:33 PM
Setting up a web server and not only that... axelwing Linux - Newbie 4 05-19-2005 10:40 AM
Setting up a Web Server gtgoku Linux - Networking 3 03-15-2005 12:34 AM
Setting up a web server lemonsensation Linux - Newbie 3 08-13-2004 01:20 AM
setting up password protected web forms on an apache web server AZDAVE Linux - Security 3 07-07-2004 01:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration