Hi Folks,
This might be a very question,but i have not been able to find the solution.
While accessing http://16.138.32.128/ in my LAN, i am able to read the index.html placed in DocumentRoot(/var/www/html).
However if i tab in https://xx.xx.xx.xx/ ,i am only able to access the default apache page. Trying to view the index.html page gives a 404 error.I have set the DocumentRoot to /var/www/html in /etc/httpd/conf.d/ssl.conf file.
I am a newbie and want to know where the DocumentRoot is set for https.
Am attaching httpd.conf herewith.Please help.
<VirtualHost *:80>
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass /br balancer://myclustermages/ stickysession=JSESSIONID nofailover=On
ProxyPassReverse / http://16.138.32.121:80
ProxyPassReverse / http://16.138.32.254:80
<Proxy balancer://myclustermages/>
BalancerMember http://16.138.32.121:80/br loadfactor=1
BalancerMember http://16.138.32.254:80/br loadfactor=1
ProxySet lbmethod=byrequests
</Proxy>
ProxyPass /balancer-manager !
ProxyPass /Brahma balancer://mycluster/ stickysession=JSESSIONID nofailover=On
ProxyPassReverse / http://16.138.32.121:80
ProxyPassReverse / http://16.138.32.254:80
AllowCONNECT 443 81
<Proxy balancer://mycluster>
BalancerMember http://16.138.32.121:80/Brahma loadfactor=1
BalancerMember http://16.138.32.254:80/Brahma loadfactor=1
ProxySet lbmethod=byrequests
</Proxy>
ProxyPass /Brahma1 balancer://mycluster1/ stickysession=JSESSIONID nofailover=On
ProxyPassReverse / http://16.138.32.128:80
ProxyPassReverse / http://16.138.32.128:80
<Proxy balancer://mycluster1>
BalancerMember http://16.138.32.121:81/Brahma1 loadfactor=1
BalancerMember http://16.138.32.254:81/Brahma1 loadfactor=1
ProxySet lbmethod=byrequests
</Proxy>
<Location /balancer-manager>
SetHandler balancer-manager
</Location>
ProxyPass /http-bind balancer://mylbejabberdcluster/ nofailover=On
ProxyPassReverse / http://16.138.32.128:80
ProxyPassReverse / http://16.138.32.128:80
<Proxy balancer://mylbejabberdcluster/>
BalancerMember http://16.138.32.121:81/http-bind loadfactor=1
BalancerMember http://16.138.32.254:81/http-bind loadfactor=1
ProxySet lbmethod=byrequests
</Proxy>
</VirtualHost>
This is an existing QA-set up and i am asked to get the same home page for HTTP and HTTPS.
Also attaching relevant config in ssl.conf file:
<VirtualHost 16.138.32.128:443>
DocumentRoot "/var/www/html"
ServerName 16.138.32.128:443
<Files ~ "\.(cgi|shtml|phtml|php3?)$">
SSLOptions +StdEnvVars
</Files>
#<Directory "/var/www/cgi-bin">
<Directory "/var/www/html">
SSLOptions +StdEnvVars
</Directory>
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass /balancer-manager !
ProxyPass / balancer://mycluster/ stickysession=JSESSIONID nofailover=On
ProxyPassReverse / http://16.138.32.121:80
ProxyPassReverse / http://16.138.32.254:80
<Proxy balancer://mycluster>
BalancerMember http://16.138.32.121:80 loadfactor=1
BalancerMember http://16.138.32.254:80 loadfactor=1
ProxySet lbmethod=byrequests
</Proxy>
<Location /balancer-manager>
SetHandler balancer-manager
</Location>
</VirtualHost>
Please help.Thanks.
HG
---------- Post updated at 09:38 AM ---------- Previous update was at 09:35 AM ----------
Please replace https://xx.xx.xx.xx/ to https://16.138.32.128/ . The tyo is regretted.
HG