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 -

how to prompt save As Box in Excel Interlop c# MVC 4 -

xslt 1.0 - How to access or retrieve mets content of an item from another item? -