Thread: Basic Apche configuration for multiple websites
hi,
have newbie question setting apache users want make own websites. each person have own index.html. have default lamp install on 9.04 sever , works ok.
1 way give access see documented configure /var/www make editable making www-data group has permission edit document root , adding people group...
see virtual hosts...
want have ability add people want own websites. doesn't have user1.org, user2.org assume virtual hosts able do. be, mydomain.org/user1, mydomain.org/user2 uach user can edit own page only.
i'm not sure how securely config this. add dirs per each user under www/var , give permissions/authentication per each dir per user. or do each user's /home?
expect i'll have edit apache config file(s) too.
if there's tutorial know or give me idea appreciated. test server behind local firewall , test, local.
there may dns make better i'd defer right , functionality cited above, seems common (but not easy) thing do. appreciated.
lee g.
enable apache's userdir module: sudo a2enmod userdir
restart apache: sudo /etc/init.d/apache2 restart
create public_html user: sudo mkdir /home/username/public_html
create index file user: sudo echo "here's index" > /home/username/public_html/index.htm
fix permissions: sudo chown -r username:username /home/username/public_html
browse http://servername/~username
Forum The Ubuntu Forum Community Ubuntu Specialised Support Ubuntu Servers, Cloud and Juju Server Platforms [ubuntu] Basic Apche configuration for multiple websites
Ubuntu
Comments
Post a Comment