LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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

Reply
 
Search this Thread
Old 10-21-2003, 04:01 AM   #1
George2
Member
 
Registered: Oct 2003
Posts: 354

Rep: Reputation: 30
Unhappy How to setup virtual hosts for a web site?


Hello, everyone!

I want to setup several virtual hosts for one Apache based web server. And I want to give each individual virtual web site one admin user (virtual host admin user, or webmaster of that virtual web site) who can upload and modify the content for each. Other users can only read (browse) the web site.

And I want to let the virtual host admin user upload and modify the files using FTP.

I want to know whether there are some tutorials for this topic. I am using Red Hat 8.0 and Apache.


Thanks in advance,
Geo
 
Old 10-21-2003, 04:34 AM   #2
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Easiest one I've found is to dive in and start playing around. However, if you aren't up for that, or it's not working for you, or whatever... Here's some solutions:
http://tldp.org/HOWTO/Virtual-Web/index.html

Also, check out apache's homepage ( www.apache.org ) and read up on their site docs on VHosting. As far as the FTP bit, that's really a matter of setting up an FTP server, and allowing those specific users to the DefaultRoot's of the virtual directories. I'd go about that personally by setting up the user as an actual user on my system, and making their actual home directory be the / of their HTTP server, for example:
/var/htdocs/site1
Might be one of the user's home directories. Then in something like ProFTPD I'd set up the DefaultRoot to be ~ (Home directory) which upon FTP'ing into your site will place them in their home directory. In practice I think all of this will make a lot more sense, because right now, on paper sorta speak, it's clear as mud I'm sure. So get the applications, toss in the hands on, apply some of these theories and test them out to see how you can tweak them to your situation.

Cool
 
Old 10-21-2003, 04:39 AM   #3
George2
Member
 
Registered: Oct 2003
Posts: 354

Original Poster
Rep: Reputation: 30
Talking

Thanks, MasterC buddy!


Geo

Quote:
Originally posted by MasterC
Easiest one I've found is to dive in and start playing around. However, if you aren't up for that, or it's not working for you, or whatever... Here's some solutions:
http://tldp.org/HOWTO/Virtual-Web/index.html

Also, check out apache's homepage ( www.apache.org ) and read up on their site docs on VHosting. As far as the FTP bit, that's really a matter of setting up an FTP server, and allowing those specific users to the DefaultRoot's of the virtual directories. I'd go about that personally by setting up the user as an actual user on my system, and making their actual home directory be the / of their HTTP server, for example:
/var/htdocs/site1
Might be one of the user's home directories. Then in something like ProFTPD I'd set up the DefaultRoot to be ~ (Home directory) which upon FTP'ing into your site will place them in their home directory. In practice I think all of this will make a lot more sense, because right now, on paper sorta speak, it's clear as mud I'm sure. So get the applications, toss in the hands on, apply some of these theories and test them out to see how you can tweak them to your situation.

Cool
 
Old 10-21-2003, 04:43 AM   #4
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
You're welcome, and feedback is more than welcome after you give it a go. Follow up questions on specific areas of trouble, and anything you come across during the trial and error phase; feel free to post up about. If I'm not on, there are more than a few very telented individuals here who will be more than happy to assist.

Good Luck!

Cool
 
Old 10-21-2003, 04:46 AM   #5
George2
Member
 
Registered: Oct 2003
Posts: 354

Original Poster
Rep: Reputation: 30
Unhappy

Thanks, MasterC buddy!

I am still a newbie of this site. I think I can grow up quickly with the help of your help.


regards,
Geo
 
  


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
vsftpd, web uploads, vsftpd virtual users, apache virtual hosts, home directories jerryasher Linux - Software 7 02-18-2007 07:29 AM
apache-ssl setup virtual hosts notolerance Linux - Software 3 12-22-2005 05:20 PM
webalizer setup for virtual hosts intranet_man Linux - Security 1 03-03-2005 01:00 PM
Red Hat 9 GUI Virtual Hosts setup yellowjelly Red Hat 2 12-21-2004 07:29 PM
Apache virtual hosts for intranet and external site tawalker Linux - Software 12 06-25-2004 12:01 PM


All times are GMT -5. The time now is 09:21 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration