Does anyone know is it possible to setup apache vhost in a following way:
- if user access to www.example.com then vhost takes it to /www/example.com
- if user access to www.example2.com then vhost takes it to /www/example2.com
- if user access to an IP of server 1.2.3.4 then it gets some default page /www/default
Is it possible to make a generic configuration that will avoid having exact IP address of the server in it ? (so that if server IP changes it's not neccessary to change configuration files)