apache - Why https:// and http//:443 works, but http does not with SSLEngine on? -
i'm trying allow http , https on virtualhost within ubuntu/debian. using default snakeoil certificates , getting following errors when sslengine on. servername linuxturnkeylamp, have no idea how .belkin being added using belkin router internet access.
[tue jul 07 20:13:21 2015] [warn] rsa server certificate commonname (cn) `linuxturkeylamp.belkin' not match server name!? [tue jul 07 20:13:21 2015] [error] python_init: python version mismatch, expected '2.7.2+', found '2.7.3'. [tue jul 07 20:13:21 2015] [error] python_init: python executable found '/usr/bin/python'. [tue jul 07 20:13:21 2015] [error] python_init: python path being used '/usr/lib/python2.7/:/usr/lib/python2.7/plat-linux2:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload'. [tue jul 07 20:13:21 2015] [notice] mod_python: creating 8 session mutexes based on 150 max processes , 0 max threads. [tue jul 07 20:13:21 2015] [notice] mod_python: using mutex_directory /tmp [tue jul 07 20:13:21 2015] [warn] rsa server certificate ca certificate (basicconstraints: ca == true !?) the apache2.conf has servername linuxturnkeylamp, , aside default virtualhost , 1 phpmyadmin, other is...
<virtualhost localdrupal.mydomain.com:*> documentroot //home/myuser/mydomain/mydomain servername localdrupal.mydomain.com serveralias localdrupal.mydomain.com serveradmin myemail@gmail.com alias /mobile "//home/myuser/mydomain/projectpath/www" alias /mobile-app/plugins "//home/myuser/mydomain/cordova/cordova-mydomain/plugins" alias /mobile-app "//home/myuser/mydomain/projectpath/www" <directory /> options followsymlinks allowoverride none </directory> <directory //home/myuser/mydomain/mydomain> options indexes followsymlinks multiviews allowoverride none order allow,deny allow </directory> scriptalias /cgi-bin/ /usr/lib/cgi-bin/ <directory "/usr/lib/cgi-bin"> allowoverride none options +execcgi -multiviews +symlinksifownermatch order allow,deny allow </directory> errorlog ${apache_log_dir}/error.log loglevel warn customlog ${apache_log_dir}/ssl_access.log combined sslengine on sslcertificatefile /etc/ssl/certs/ssl-cert-snakeoil.pem sslcertificatekeyfile /etc/ssl/private/ssl-cert-snakeoil.key <filesmatch "\.(cgi|shtml|phtml|php)$"> ssloptions +stdenvvars </filesmatch> <directory /usr/lib/cgi-bin> ssloptions +stdenvvars </directory> browsermatch "msie [2-6]" \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0 browsermatch "msie [17-9]" ssl-unclean-shutdown </virtualhost> my /etc/hosts include..
127.0.0.1 linuxturnkeylamp 192.168.56.100 localdrupal.tripchi.com as is, https://... displays static image when requesting http://localdrupal.mydomain.com:443/image.png. however, when requesting http://localdrupal.mydomain.com/image.png get....
bad request
your browser sent request server not understand. reason: you're speaking plain http ssl-enabled server port. instead use https scheme access url, please.
if change sslengine off, https says ssl connection error , http displays image.
what doing wrong? default virtualhost have include ssl? not.
it appears problem allowoverride none needed allowoverride all in project's directory specification 443 virtualhost.
Comments
Post a Comment