Advertisement

06.15.2007 at 02:01AM PDT, ID: 22635857
[x]
Attachment Details

apache configuration

Asked by vamsi_uk in Linux, Linux Administration, Linux Setup

Tags: apache, 61101, ports

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/app1
https://192.168.132.128:61102/app2

These 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
[+][-]06.15.2007 at 02:17AM PDT, ID: 19290193

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.15.2007 at 04:11AM PDT, ID: 19290651

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.15.2007 at 12:13PM PDT, ID: 19294580

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Linux, Linux Administration, Linux Setup
Tags: apache, 61101, ports
Sign Up Now!
Solution Provided By: CSecurity
Participating Experts: 2
Solution Grade: B
 
 
 
Loading Advertisement...
20080716-EE-VQP-32