Sunday, February 28, 2021

How to http 301 URL redirection to https(SSL) with httpd-vhosts.conf ? (AWS Lightsail,LAMP,wordpress)

How http 301 URL redirection to https(SSL)  with httpd-vhosts.conf ? 


This environment is  AWS Lightsail ,LAMP,and more website with apache virtual host

Wednesday, February 24, 2021

LAMP installation SSL And set wordpress with https (AWS Lightsail )

 



LAMP installation SSL 

https://lightsail.aws.amazon.com/ls/docs/zh_tw/articles/amazon-lightsail-using-lets-encrypt-certificates-with-lamp#request-a-lets-encrypt-certificate-lamp




https://serverfault.com/questions/744960/configuring-ssl-with-virtual-hosts-under-apache-and-centos

<VirtualHost *:443>
    ServerName www.example.com
    ServerAlias example.com
    DocumentRoot /var/www/example.com/public_html
    ErrorLog /var/www/example.com/error.log
    CustomLog /var/www/example.com/requests.log combined
    SSLEngine on
    SSLCertificateFile /etc/apache2/ssl/example/apache.crt
    SSLCertificateKeyFile /etc/apache2/ssl/example/apache.key
</VirtualHost>

<VirtualHost *:443>
    ServerName www.example2.com
    DocumentRoot /var/www/example2.com/public_html
    ServerAlias example2.com
    ErrorLog /var/www/example2.com/error.log
    CustomLog /var/www/example2.com/requests.log combined
    SSLEngine on
    SSLCertificateFile /etc/apache2/ssl/example2/apache.crt
    SSLCertificateKeyFile /etc/apache2/ssl/example2/apache.key
</VirtualHost>




Tuesday, February 9, 2021

AWS SSH login no supported authentication methods available server sent publickey

 PuTTYgen load [your ssh mane].ppk

copy ssh all



.ssh and 





authorized_keys


paste from ssh and save



https://askubuntu.com/questions/204400/ssh-public-key-no-supported-authentication-methods-available-server-sent-publ

Tuesday, April 21, 2020

How to Install Facebook Pixel on Blogger?(2020)(error:he reference to entity "ev" must end with the ';' delimiter.)

If  you install Facebook Pixel on Blogger  is error or not work

org.xml.sax.SAXParseException; lineNumber:
 columnNumber:
The reference to entity "ev" must end with the ';' delimiter.



  1. encode  Facebook Pixel  with HTML Encoderbr
  2. Paste on blogger and after </head>
  3. Add amp; on after amp;

Wednesday, March 25, 2020

Sunday, February 23, 2020

micro USB Bad connection! Wrong design micro USB connector


I buy some micro USB line from chinese on 1688. Their color is blue. And with Anti electromagnetic interference,Industrial grade.

Sunday, December 15, 2019

ESP32 use NVS, but always reset. error "ESP_ERR_NVS_KEY_TOO_LON"


If Word count for NVS KEY >15,ESP32 will  restart ,and you maybe get "ESP_ERR_NVS_KEY_TOO_LON" error in serial monitor.