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