LinuxQuestions.org
Review your favorite Linux distribution.
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 12-25-2004, 10:30 PM   #1
stlshawn
LQ Newbie
 
Registered: Dec 2004
Location: Missouri, USA
Distribution: Slackware 10 & Vector 3.2
Posts: 20

Rep: Reputation: 0
other users' websites (~username)


Sorry if this seems a bit of a silly question, but i'm really at a loss.

I changed my default webserver, and thanks to some help of the people here, it works! woo hoo,,,, yeah!!

Anyway, naturally, i want to go a bit further.

I'm trying to make it so i can create files as other users.
Currently, i have a user called "webmaster", who's home directory is also the apache default wich is now, /home/webmaster/www/public_html .

now i'm trying to setup another user who could be accessed at xxxxx/~shawn

So, i added user shawn via adduser shawn
created /www/public_html under /home/shawn .

when i ftp into the server, logged in as shawn, it lets me get into all the directories, but when i try to use xxxxx/~shawn i get 404 error.

where should i be looking to fix this?


the five x's are for my server's ip wich i cannot type since i have not yet posted five times.
thanks everyone...
Shawn
 
Old 12-26-2004, 01:48 AM   #2
jacks4u
Member
 
Registered: Dec 2004
Location: Phoenix, Arizona, USA
Distribution: Debian, RedHat, ???
Posts: 56

Rep: Reputation: 15
/etc/apache/httpd.conf has the settings you are looking for - speciffically the <VirtualHost> or <Location> sections, where you can tell Apache aboutlocations it is supposed to serve other than the webroot.

you should rad up on the httpd.conf file and the things it allows you to do - http://httpd.apache.org/docs-project/ - has the documentation for several recent releases of apache

but something like:

Code:
Alias /~shawn/ /home/shawn/www/public-html/ 
<Location /~shawn >
  order allow,deny
  allow from all
  Options Indexes FollowSymLinks MultiViews
</Location>
might do the trick - but caution is needed as there are several security issues with doing it this way.

Read the online doccumentation, and adjust httpd.conf to suit your needs

jacks4u

Last edited by jacks4u; 12-26-2004 at 01:50 AM.
 
Old 12-26-2004, 04:15 AM   #3
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
Moved: This thread is more suitable in Linux-Networking and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 12-26-2004, 04:23 AM   #4
fax8
Member
 
Registered: Jul 2004
Location: Italy
Distribution: SlackWare 10 - The Best
Posts: 72

Rep: Reputation: 15
Hi

I think that the best way to add user home webspace is to use mod_userdir.
to enable this put this code on your httpd.conf .

This will enable web sharing of www/public_html directory for every user below /home

Code:
#
# UserDir: The name of the directory which is appended onto a user's home
# directory if a ~user request is received.
#
<IfModule mod_userdir.c>
    UserDir www/public_html
</IfModule>

#
# Control access to UserDir directories.  The following is an example
# for a site where these directories are restricted to read-only.
#
<Directory /home/*/www/public_html>
    AllowOverride FileInfo AuthConfig Limit
    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
    <Limit GET POST OPTIONS PROPFIND>
        Order allow,deny
        Allow from all
    </Limit>
    <LimitExcept GET POST OPTIONS PROPFIND>
        Order deny,allow
        Deny from all
    </LimitExcept>
Hope to be useful!

Fabio Italy
 
Old 12-26-2004, 08:42 AM   #5
stlshawn
LQ Newbie
 
Registered: Dec 2004
Location: Missouri, USA
Distribution: Slackware 10 & Vector 3.2
Posts: 20

Original Poster
Rep: Reputation: 0
Thanks so much

I'm constantly amazed at how wonderful the people
of this forum are.
I was bedazzled enough by the help at the vector
linux forum, and how helpful they were, especially
after hearing all the misinformation on how elitist
the linux community was. Now i know that the linux
users are the cream of the crop in technical skills, and
in their wish to help others use this wonderful operating
system.

I'll try these answers tonight, and thanks so much for the
info.

Be Happy Always!
Shawn
 
  


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
Why "bash-2.05b$" in Terminal instead of "username@localhost username" jayelitumbiolo Linux - General 9 10-04-2009 03:16 AM
Giving individual users editing rights for websites using Apache Server aakash Linux - General 1 05-26-2005 01:41 PM
useradd: invalid username username$ engyeow Fedora 5 12-05-2004 04:35 AM
Websites that sell websites..? mScDeX General 2 12-29-2003 03:01 PM
Websites? Nephlite Linux - Newbie 1 01-31-2002 01:00 PM

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

All times are GMT -5. The time now is 10:42 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration