Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Installation with virtual host and ssl on apache 2


jopeme

Recommended Posts

Hi!

Anyone does know or have an example of virtual host and ssl ?

Now i have several domains working on apache 2.0.53 and i need one of this

works with ssl and oscommerce. I'm making test, but it doesn't works fine. Catalog directory is shows without graphics,colours,etc.

 

In httpd.conf i have following lines:

<IfModule mod_ssl.c>

Include conf/ssl.conf

</IfModule>

NameVirtualHost 172.168.0.3:80

NameVirtualHost 172.168.0.3:443

<VirtualHost 172.168.0.3:80>

ServerAdmin [email protected]

DocumentRoot /web/htdocs

ServerName dominio1.com

ServerAlias www.dominio1.com

</VirtualHost>

<VirtualHost 172.168.0.3:80>

ServerAdmin [email protected]

DocumentRoot /web2/htdocs

ServerName dominio2.com

ServerAlias www.dominio2.com

</VirtualHost>

 

And in ssl.conf i have virtual host with ssl and oscommerce:

 

SSLRandomSeed startup builtin

SSLRandomSeed connect builtin

Listen 443

SSLPassPhraseDialog builtin

SSLSessionCache dbm:/usr/local/apache2/logs/ssl_scache

SSLSessionCacheTimeout 300

SSLMutex file:/usr/local/apache2/logs/ssl_mutex

<IfDefine SSL>

<VirtualHost 172.168.0.3:443>

ServerAdmin [email protected]

DocumentRoot /web3/htdocs/catalog

ServerName shop.dominio3.com

SSLEngine on

AddType application/x-x509-ca-cert .crt

AddType application/x-pkcs7-crl .crl

SSLCipherSuite

ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL

SSLCertificateFile /usr/local/apache2/conf/ssl.crt/server.crt

SSLCertificateKeyFile /usr/local/apache2/conf/ssl.key/server.key

<Files ~ "\.(cgi|shtml|phtml|php3?|php)$">

SSLOptions +StdEnvVars

</Files>

SetEnvIf User-Agent ".*MSIE.*" \

nokeepalive ssl-unclean-shutdown \

downgrade-1.0 force-response-1.0

CustomLog /usr/local/apache2/logs/ssl_request_log \

"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"

</VirtualHost>

</IfDefine>

 

What's wrong?

 

Thanks.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...