Need help to configure file:default on apache2

Posted by turk182 on Server Fault See other posts from Server Fault or by turk182
Published on 2010-04-12T22:08:14Z Indexed on 2010/04/12 22:13 UTC
Read the original article Hit count: 391

Filed under:
|
|

hi all!! im trying to use xen on ubuntu 8.04 hardy heron, because it is a project that assign to me in my new job, i have already installed xen and im running the virtual machines. according to the guide that they give me, i have to configure de file: default, from apache2 directory, like this:

vi /etc/apache2/sites-available/default

inside of this file i have to write the next information:

NameVirtualHost *
VirtualHost *>
ServerName "www".ejemplo.com
ServerAlias ejemplo.com
DocumentRoot /var/www/
ProxyRequests Off
Proxy *>
Order deny,allow
Allow from all
/Proxy>

ProxyPass /balancer-manager !
ProxyPass / balancer://mycluster/ stickysession=BALANCEID nofailover=On
ProxyPassReverse / "http"://http1.ejemplo.com/
ProxyPassReverse / "http"://http2.ejemplo.com/
Proxy balancer://mycluster>
BalancerMember "http://10.10.2.101:8080 loadfactor=1
BalancerMember "http://10.10.2.102:8080 loadfactor=2
ProxySet lbmethod=byrequests
/Proxy>

Location /balancer-manager>
SetHandler balancer-manager

Order deny,allow
Allow from all
/Location>
/VirtualHost>

in the section of balancermember im using the ip of the virtual machine: virtual machine 1 has ip 10.10.2.101 and virtual machine 2 has ip 10.10.2.102 then i have to install apache2 on each virtual machine and restart apache2 the question is what i hace to do to verify if all of this works

allegedly i have to open a browser and write "www.ejemplo.com" and suppost show something

thats the reason that im ask for help cause i dont know what to do, im looking for on the web and i cant find nothing related with this...

ill appreciatte your help.

THXS!!!

pd. i closed "www" and "HTTP" in quotes by rules of this sites cause im a new user

© Server Fault or respective owner

Related posts about xen

Related posts about configure