Hi Experts,
Im trying to host two websites in Apache, one with SSL enabled and another one is non-ssl. The requirement is something like this....I need to setup two wbesites with different port numbers as follows:
##########################
##########
##########
##########
##########
##########
#####
http://192.168.132.128:61101/app1https://192.168.132.128:61102/app2These are the only bits i have modified in /etc/httpd/conf/httpd.conf
file:
Listen 61101
Listen 0.0.0.0:61102
ServerName 192.168.132.128
NameVirtualHost *:61101
<VirtualHost *:61101>
ServerAdmin root@localhost
DocumentRoot /var/www/html/app1
ServerName 192.168.132.128
#SSLEngine on
#SSLCertificateFile /etc/httpd/app1.crt
#SSLCertificateKeyFile /etc/httpd/app1.key
#SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
</VirtualHost>
NameVirtualHost *:61102
<VirtualHost *:61102>
ServerAdmin root@localhost
documentRoot /var/www/html/app2
ServerName 192.168.132.128
SSLEngine on
SSLCertificateFile /etc/httpd/app2.crt
SSLCertificateKeyFile /etc/httpd/app2.key
SetEnvIf User-Agent "."MSIE.*" nokeepalive ssl-unclean-shutdhow
</VirtualHost>
##########################
##########
##########
##########
##########
##########
#####
in /etc/httpd/conf.d/ssl.conf
, this is the only parameters i have specified and rest of the contents of the file are the default ones.
<VirtualHost 0.0.0.0:61102>
##########################
##########
##########
##########
##########
##########
####
Now im able to get the SSL website but not the normal one.
https://192.168.132.128:61102/app2 <------------This works fine
http://192.168.132.128:61101/app1 <--------------- This does not work
Can someone help me out with this as this is very urgent to me
thanks
Start Free Trial