I want to create a local web server and different domains for eg. apple.com,abc.apple.com,xyz.apple.com etc.I installed LAMP in CentOS 5.4. The problem is i am not able to configure ssh username and password for each of my subdomain.I want to keep a single document root for each subdomain. can anybody explain the whole process of setting a local web server with multiple subdomain having unique ssh username and password with common document root.
Set up virtual hosts on the Apache httpd server. Edit httpd.conf:
First, set up users to maintain the content of each site. There are a number of ways of handling this. One way would be to make apache serve each site from a subdirectory of each users home directory. Another way would be to put a softlink from the user's home directory to the docroot directory of the corresponding site.
Then you set up ssh in the usual way. When Mary, Fred or Pete log in they can