Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.