I'm dealing with a very strange problem when trying to configure a new sub-domain on a Virtual Machine.
The problem is simple to explain:
I have two virtual Hosts entries on my httpd-vhosts.conf pointing to the same path. Both should should have the same behavior as they are equally configured as you can see below:
#
# FIRST ENTRY #######################
#
<VirtualHost www.jorgevalhondo.com:80>
ServerAdmin you@localhost.com
DocumentRoot /opt/lampp/htdocs/trabsi
ServerName www.development.trabsi.com
ServerAlias www.development.trabsi.com
ErrorLog logs/jorgevalhondo-error_log
CustomLog logs/jorgevalhondo-access_log common
</VirtualHost>
#
#SECOND ENTRY ####################
#
<VirtualHost www.development.trabsi.com:80 development.trabsi.com:80>
ServerAdmin info@trabsi.com
DocumentRoot /opt/lampp/htdocs/trabsi
ServerName www.jorgevalhondo.com
ErrorLog logs/trabsi-error_log
CustomLog logs/trabsi-access_log common
</VirtualHost>
Everything works nice with the First Entry:
- jorgevalhondo.com Returns 200 ok
- www.jorgevalhondo.com Returns 200 ok
With the second one:
- development.trabsi.com -> Returns 200 ok
but
- www.development.trabsi.com -> Returns the following error:
You don't have permission to access / on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Any Ideas about what could be wrong here, and how to solve it? Feel free to follow the mentioned links to check the problem live.
Thanks.