Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
okay...running apache 1.3.31 as a test server right now(might open it up in the future)
i have added 'www.darkstar.net' as an alias to localhost in /etc/host
[* i went ahead and did this because i remember having problems with cookies and session information in xp using 'localhost' as server]
http://www.darkstar.net brings up the "it worked!" page in /var/www/htdocs
i have read that using userdirs can be dangerous. currently, my permissions are:
755 root:root /home
755 user1:root /home/user1
755 user1:root /home/user1/public_html
thinking perhaps these should be:
751 root:root /home
711 user1:root /home/user1
700 user1:root /home/user1/*
755 user1:root /home/user1/public_html
i did enable userdirs:
UserDir disabled root
#[what is the difference between 'UserDir public_html' and "UserDir /home/*/public_html'?]
and http://www.darkstar.net/~user1 brings up the index in /home/user1/public_html,
BUT i would like to set it up so that http://user1.darkstar.net will access /home/user1/public_html
...and i am not sure if AliasMatch, RewriteRule, or subdomains through VirtualHost would be the best way to achieve this. Does anyone know how production sites deal with this?
I might recomend virtualhosts. Then all you do is set up a new docs dir, and apache sends all requests for that name to that dir. Much easier and you don't have to screw w/ users home directory permissions. It appears though that you've block your apache user from gaining access to the home directory of the user. If apache can't go there, then it can't go to any subdirectory of that. I might just change the permissions to 750 and change the group of the home directories to that of apache. Personally though, I'd rather use virtualhosts...
this is working right now for me...i probably will move everything to one folder (eg /usr/local/apache/htdocs/user) where i would just have to change the value of VirtualDocumentRoot.
however, i did have to put each site in the /etc/hosts file:
Originally posted by Archite
It appears though that you've block your apache user from gaining access to the home directory of the user. If apache can't go there, then it can't go to any subdirectory of that.
the 700 was meant as files and directories other than public_html inside the user's home directory