CNAME address in apache configuration -


i have multiple domain map server's subdomain. example

www.xyz.com -> goo.myserverdomain.com www.lmn.com -> fb.myserverdomain.com www.abc.com -> twt.myserverdomain.com 

i mapping using cname in each domain. @ server end, want resolve server subdomain. want configure

servername myserverdomain.com serveralias *.myserverdomain.com proxypass / http://<ip>:8780/(goo/fb/twt ...) 

when configuration, apache not recognize virtual host , show first default one. seems getting host name. how resolve myserverdomain address in configuration. please help

it not matter how domain mapping done. apache not know , web browser not care. reacts on line "host:" send in header.

to enable virtual name solving, need set

namevirtualhost ... 

for each ip+port combination or '*' all.

usually when starting, apache tell you have virtual hosts, no proper name switching.


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -