javajenius
New Member
- Messages
- 258
- Reaction score
- 0
- Points
- 0
I have my own virtual linux server up and running and i came across a problem.
I created a couple of users, and I need to make each user have his/her own apache web directory root.
Is there anyway to do this automatically or will I have to write my own script?
Like here:
I created a couple of users, and I need to make each user have his/her own apache web directory root.
Is there anyway to do this automatically or will I have to write my own script?
Like here:
Code:
Listen 80
NameVirtualHost *
<VirtualHost *>
ServerName www.domain.com
DocumentRoot /home/httpd/user1/htdocs/
</VirtualHost>
<VirtualHost *>
ServerName subdomain.domain.com
DocumentRoot /home/httpd/user2/htdocs/subdomain/
</VirtualHost>
Last edited: