LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-18-2004, 10:14 PM   #1
id10t
Member
 
Registered: Dec 2003
Location: Minnesota
Distribution: Slackware 9.1
Posts: 63

Rep: Reputation: 15
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.
 
Old 01-18-2004, 10:38 PM   #2
rlkiddjr
Member
 
Registered: Feb 2002
Distribution: FreeBSD 4.9
Posts: 69

Rep: Reputation: 15
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.
 
Old 01-19-2004, 12:53 AM   #3
coolamit78
Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: RHEL AS 3/4, Windows XP
Posts: 546

Rep: Reputation: 31
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
 
Old 01-19-2004, 01:39 AM   #4
diverge
LQ Newbie
 
Registered: Aug 2003
Location: Houston, TX
Distribution: RedHat 9, Fedora Core 1, Slackware 9.1
Posts: 11

Rep: Reputation: 0
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.

Last edited by diverge; 01-19-2004 at 01:51 AM.
 
Old 02-02-2004, 05:43 PM   #5
id10t
Member
 
Registered: Dec 2003
Location: Minnesota
Distribution: Slackware 9.1
Posts: 63

Original Poster
Rep: Reputation: 15
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...
 
  


Reply



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
Virtual Hosting? nr5 Linux - Software 10 06-03-2005 01:30 PM
virtual hosting setenv02 Linux - General 6 05-05-2005 02:35 AM
Virtual Hosting - what does it actually do? gevers1 Linux - General 3 02-01-2004 09:28 AM
Virtual Hosting joseph Linux - General 3 08-20-2003 04:16 AM
Virtual Hosting marson Linux - General 2 12-28-2000 08:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:03 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
Open Source Consulting | Domain Registration