Hi,
I am currently managing my own website e.g.
www.example.com which is working fine and now would like to host another domain (e.g.
www.someotherexample.com) on the same machine running Ubuntu Server 12.04 LTS.
I looked this up via google search and found that I need something like name-based virtual hosts.
So I made some changes in my apache2 httpd.conf by adding the following:
<snip>
...
Listen 80
...
<snip>
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot "/usr/local/apache2/htdocs"
ServerName
www.example.com
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "/usr/local/apache2/htdocs/myothersite/otherexample"
ServerName
www.someotherexample.com
</VirtualHost>
Then, saved it and restart my apache2.
I got the following error message when trying to open the page
http://www.someotherexample.com
Forbidden
You don't have permission to access / on this server
I have checked the file permission of the directory myothersite and they are apache:nogroup
I'm at a loss - I don't know what to do.
Any help would be greatly appreciated.
Thank you