Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
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
/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
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>
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.