Primero deberemos editar el fichero /etc/hosts del servidor alpha para definir la equivalencia de las IPs con los nombres de los servidores:
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
10.112.48.21 alpha
10.112.48.22 beta
10.112.48.23 charlie
10.112.48.24 delta
10.112.48.25 echo
Primero podemos configurar los que estaran en el mismo servidor alpha que el Apache.
La configuración prevista de cada VirtualHost, lo haremos con un fichero para servicio, por ejemplo /etc/httpd/conf.d/website.costaflores.com.conf
Dominio: http://costaflores.com
Edit file /etc/httpd/conf.d/website.costaflores.com.conf
For static Website:
<VirtualHost *:80>
ServerName costaflores.com
ServerAlias www.costaflores.com
DocumentRoot /var/www/html/costaflores.com/
CustomLog logs/costaflores.com.log combined
ErrorLog logs/costaflores.com.error.log
</VirtualHost>
For Magnolia Website:
<VirtualHost *:80>
ProxyPreserveHost On
ProxyRequests Off
ServerName costaflores.com
ServerAlias www.costaflores.com
ProxyPass / http://localhost:8080/
ProxyPass / http://localhost:8080/magnoliaAuthor/
ProxyPassReverse / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/magnoliaAuthor/
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
CustomLog logs/costaflores.com.log combined
ErrorLog logs/costaflores.com.error.log
</VirtualHost>
Dominio: http://mtb18.costaflores.com
<VirtualHost *:80>
ServerName mtb18.costaflores.com
DirectoryIndex index.html index.php
DocumentRoot /var/www/html/mtb18/
CustomLog logs/mtb18.costaflores.com.log combined
ErrorLog logs/mtb18.costaflores.com.error.log
</VirtualHost>
Dominio: http://ico.costaflores.com
Edit file /etc/httpd/conf.d/website.ico.costaflores.com.conf
<VirtualHost *:80>
ServerName ico.costaflores.com
DirectoryIndex index.html
DocumentRoot /var/www/html/ico.costaflores.com/
CustomLog logs/ico.costaflores.com.log combined
ErrorLog logs/ico.costaflores.com.error.log
</VirtualHost>
Dominio: http://openvino.org/
Edit file /etc/httpd/conf.d/website.openvino.org.conf
<VirtualHost *:80>
ServerName openvino.org
ServerAlias www.openvino.org openvino.costaflores.com
DirectoryIndex index.html index.php
DocumentRoot /var/www/html/openvino.org/
CustomLog logs/openvino.org.log combined
ErrorLog logs/openvino.org.com.error.log
</VirtualHost>
Dominio: http://www.theluckhunters.com
Edit file /etc/httpd/conf.d/website.theluckhunters.com.conf
<VirtualHost *:80>
ServerName theluckhunters.com
ServerAlias www.theluckhunters.com
DirectoryIndex index.html index.php
DocumentRoot /var/www/html/theluckhunters.com/
CustomLog logs/theluckhunters.com.log combined
ErrorLog logs/theluckhunters.com.error.log
</VirtualHost>
Dominio: http://martianwinefederation.org
Edit file /etc/httpd/conf.d/martianwinefederation.org.conf
<VirtualHost *:80>
ServerName martianwinefederation.org
ServerAlias www.martianwinefederation.org
DirectoryIndex index.html index.php
DocumentRoot /var/www/html/martianwinefederation.org/
CustomLog logs/martianwinefederation.org.log combined
ErrorLog logs/martianwinefederation.org.error.log
</VirtualHost>
Que apunten a otra máquina que no es la alpha.
Para el Erp OPENBRAVO en la máquina bravo:
Dominio: http://openbravo.costaflores.com
<VirtualHost *:80>
ServerName openbravo.costaflores.com
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass /openbravo http://10.112.48.22:8080/openbravo
ProxyPassReverse /openbravo http://10.112.48.22:8080/openbravo
<Location />
Order allow,deny
Allow from all
</Location>
CustomLog logs/openbravo.costaflores.com.log combined
ErrorLog logs/openbravo.costaflores.com.error.log
</VirtualHost>
Para la Wiki CONFLUENCE:
Dominio: http://wiki.costaflores.com
<VirtualHost *:80>
ServerName wiki.costaflores.com
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass / http://wiki.costaflores.com:8090/
ProxyPassReverse / http://wiki.costaflores.com:8090/
<Location />
Order allow,deny
Allow from all
</Location>
CustomLog logs/wiki.costaflores.com.log combined
ErrorLog logs/wiki.costaflores.com.error.log
</VirtualHost>
Para el gestor de tareas JIRA:
Dominio: http://jira.costaflores.com
<VirtualHost *:80>
ServerName jira.costaflores.com
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass / http://jira.costaflores.com:8080/
ProxyPassReverse / http://jira.costaflores.com:8080/
<Location />
Order allow,deny
Allow from all
</Location>
CustomLog logs/jira.costaflores.com.log combined
ErrorLog logs/jira.costaflores.com.error.log
</VirtualHost>
Para la tienda MAGENTO:
Dominio: http://shop.costaflores.com
<VirtualHost *:80>
ServerName shop.costaflores.com
ProxyPass / http://10.112.48.24/
ProxyPassReverse / http://10.112.48.24/
<Location />
Order allow,deny
Allow from all
</Location>
CustomLog logs/shop.costaflores.com.log combined
ErrorLog logs/shop.costaflores.com.error.log
</VirtualHost>
For Winiswap, a wine exchange Website:
Dominio http://viniswap.costaflores.com
<VirtualHost *:80>
ProxyPreserveHost On
ProxyRequests Off
ServerName viniswap.costaflores.com
ProxyPass / http://10.112.48.25:2018/
ProxyPassReverse / http://10.112.48.25:2018/
ProxyPass /mtb19/ http://10.112.48.25:2019/
ProxyPassReverse /mtb19/ http://10.112.48.25:2019/
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
CustomLog logs/viniswap.costaflores.com.log combined
ErrorLog logs/viniswap.costaflores.com.error.log
</VirtualHost>