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 |
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 |
Thanks, MasterC buddy!
Geo Quote:
|
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 |
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 |
All times are GMT -5. The time now is 09:55 AM. |