Virtual hosting...
I have been told by a ocuple people who don't have the time to waste on me that "virtual hosting" is what i am looking for.
Here is what I want to do. I want to use VSFTPD to let each user on my Slackware server connect and access their home directory with a folder named "WWW" that will be able to be connected to as http://serverAddress/userID. I am currently running a fresh install of Apache 2. Is there some way I can make a shortcut that looks like a folder to them in their home directory that would point to the correct directory in the document root for apache? Does apache have something that could help me out with this? I've been reading around and can't find much to help me. If you have any articles that would be of any help to me (short of the various documents included with Apache...I've almost everything) or something that might point me in the right direction, please let me know. |
If I understand your question correctly, I can think of two options off the top of my head.
1.) In their home directory create a symbolic link WWW to wherever their document root is located at. I think the only problem with this is that you can not jail them to their home directory, therefore they could roam around your server with a ftp client. Someone please correct me if I am wrong. 2.) When creating them as a user, create their home directory as their document root for apache. This way I know for sure you can jail them to their home directory. Hope this is of some help. |
Well...I am not sure, but this may just work!!
Right click anywhere on the empty area of the desktop and from the options, select "New Launcher" Now in the command text-box type the following command mozilla http://your-ip-address/~user OR mozilla http://your-web-site-name/~user (will work only if DNS is setup) [ Note: you may use any browser in place of mozilla ] Also, fill the other text boxes for Name, description and comments..and if u want, u can also select an icon for this launcher... Now whenever your user will double-click this icon, it should open his home directory....( if someone feels this is not correct, do correct me pls..) PS....You have slackware, and I have Red Hat 9...so a right click on the desktop may or may not give you the "New Launcher" option...just check how you can implement this idea on your distro... Regards, amit |
read this
uncomment this section in httpd.conf #Control acces to UserDir directories #........ <Directory /home/*/public_html> might be a litle more secure. place their sites in their home dir in public_html Not sure if that's what you wanted but hope it helps. |
Thanks for the help.
Sorry it took so long to reply... a whole bunch of problems came up at once... but I got it now... |
All times are GMT -5. The time now is 12:10 AM. |