apache - Sub-domain doesn't work with www -


i'm dealing strange problem when trying configure new sub-domain on virtual machine.

the problem simple explain:

i have 2 virtual hosts entries on httpd-vhosts.conf pointing same path. both should should have same behavior equally configured 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 first entry:


with second one:

but

you don't have permission access / on server. additionally, 404 not found error encountered while trying use errordocument handle request.

any ideas wrong here, , how solve it? feel free follow mentioned links check problem live.

thanks.

it's dns issue, check details:

nmap -p 80 www.development.trabsi.com 

returns:

starting nmap 6.40 ( http://nmap.org ) @ 2015-06-01 04:58 jst nmap scan report www.development.trabsi.com (217.160.186.97) host (0.28s latency). rdns record 217.160.186.97: clienteservidor.es port   state service 80/tcp open  http  nmap done: 1 ip address (1 host up) scanned in 0.85 seconds 

then, same command development.trabsi.com should point same ip, it's not:

nmap -p 80 development.trabsi.com  starting nmap 6.40 ( http://nmap.org ) @ 2015-06-01 04:59 jst nmap scan report development.trabsi.com (217.160.132.248) host (0.27s latency). port   state service 80/tcp open  http  nmap done: 1 ip address (1 host up) scanned in 0.85 seconds 

finally, if run same command www.jorgevalhondo.com , jorgevalhondo.com see point 217.160.132.248 ip, same development.trabsi.com, not same www.development.trabsi.com (217.160.186.97)

therefore, it's dns issue, please contact dns provider.


Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -