Configuring Apache, users and vhosts

Discussion in 'Apache' started by sipherz, Aug 31, 2011.

  1. #1
    Hi

    I have just installed CentOS that i plan on using to host my website on.

    As there is a root user, I decided to create a new user in the /home/newuser directory, so I could ssh into it and manage the files etc.

    The problem though, is that Apache seems to use the /var/www/html folder.

    What I'm ideally looking for, is for each domain/site that the server will hold, these will be managed through the /home/username directory, such as

    /home/example.com/public_html
    /home/something.com/public_html

    I have had a look around the net and have found mentions of the 'UserDir' section of the httpd.conf, but this seems to suggest that the URLs will be
    http://ip.address/~/example.com

    Could these URLs then be turned into http://example.com , http://something.com using the VirtualHosts?

    Is there anything else I need to look at regarding this?

    Thanks
     
    sipherz, Aug 31, 2011 IP