dns - how to redirect browser to two different site with apache virtualHost? -


i have valid ip, e.g. x.x.x.x, , domain, e.g. site.com point x.x.x.x.

first, need redirect request port 80 443 (security issue). second, every request sent ip, want apache show "hello it's working" (/var/www/index.html) , request domain show real site.

i tried this, did not work:

<virtualhost x.x.x.x:433>     servername x.x.x.x     serveralias x.x.x.x     documentroot /var/www/     directoryindex index.html     options -indexes </virtualhost>  <virtualhost site.com:443> ... </virtualhost> 


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -