Quantcast
Channel: FedoraForum.org
Viewing all articles
Browse latest Browse all 36193

Mix http(80) and http(443)

$
0
0
Hi all,
I want my Fedora 17 to set up apache using both http and https.
My configurations is :
Apache version : 2.2.22
openssl version : 1.0.0i-fips
I using named virtualhost : myfirstsite.com , mysecondsite.com

First I appended to httpd.conf
Code:

<VirtualHost *:80>
ServerName myfirstsite.com
DocumentRoot /var/www/html/http/one
</VirtualHost>

<VirtualHost *:80>
ServerName mysecondsite.com
DocumentRoot /var/www/html/http/two
</VirtualHost>

Then I test the http before install mod_ssl. It works.
append to ssl.conf
Code:

<VirtualHost *:443>
ServerName myfirstsite.com
DocumentRoot /var/www/html/https/one
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW
SSLCertificateFile /etc/pki/tls/certs/one.crt
SSLCertificateKeyFile /etc/pki/tls/certs/one.key
</VirtualHost>

<VirtualHost *:443>
ServerName mysecondsite.com
DocumentRoot /var/www/html/https/two
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW
SSLCertificateFile /etc/pki/tls/certs/two.crt
SSLCertificateKeyFile /etc/pki/tls/certs/two.key
</VirtualHost>

When I restart httpd and test.
I found that I am impossible to visit http. All access become https.


Could someone tell me is that Apache could not be both http and https?

Viewing all articles
Browse latest Browse all 36193

Trending Articles