NGINX Let’s Encrypt SSL installation

Lego Client 설치 (version 확인하여 수정) cd /tmp curl -Ls https://api.github.com/repos/xenolf/lego/releases/latest | grep browser_download_url | grep linux_amd64 | cut -d ‘”‘ -f 4 | wget -i – tar xf lego_vX.Y.Z_linux_amd64.tar.gz sudo mkdir -p /opt/bitnami/letsencrypt sudo mv lego /opt/bitnami/letsencrypt/lego Nginx 서버 중단하고 SSL 신청 sudo /opt/bitnami/ctlscript.sh stop nginx sudo /opt/bitnami/letsencrypt/lego –tls –email=”davidjhk@gmail.com ” –domains=”yourdomain.com” –domains=”www.yourdomain.com” –path=”/opt/bitnami/letsencrypt”…

Read More

NGINX Server Blocks

Bitnami NGINX WordPress 환경에서 Virtual Host 생성 Terminal 에서 app 폴더 생성 cd /opt/bitnami/ mkdir apps cd apps yii2 폴더 생성 mkdir yii2 cd yii2 Nginx 설정 파일(1) 생성 cd /opt/bitnami/apps/ mkdir conf cd conf nano nginx-app.conf /opt/bitnami/apps/conf/nginx-app.conf index index.php index.html index.htm; if ($request_uri !~ “^/phpmyadmin.*$”) { set $test A; } if ($request_uri !~ “^/bitnami.*$”)…

Read More

Git Hub Cloning

Install Git sudo apt install git-all Clone Project git clone https://github.com/davidjhk/sms Git Config git config –global user.name “davidjhk” git config –global user.email davidjhk@gmail.com Setup Nginx Virtual Host vi /opt/bitnami/apps/wordpress/conf/nginx-vhosts.conf Add following text. server{ listen 80; server_name sms.cabible.org; access_log logs/yii2.access.log; error_log logs/yii2.error.log error; root /opt/bitnami/apps/wordpress/htdocs/sms/frontend/web; index index.php index.html index.htm; location / { try_files $uri $uri/ /index.php?$args;…

Read More