Amazon Linux 2023 SSL(Let’s encrypt) 적용

d

sudo dnf install openssl mod_ssl sudo dnf install -y python3 augeas-libs pip sudo python3 -m venv /opt/certbot/ ls /opt/certbot sudo /opt/certbot/bin/pip install –upgrade pip sudo /opt/certbot/bin/pip install certbot sudo ln -s /opt/certbot/bin/certbot /usr/bin/certbot sudo systemctl stop httpd sudo certbot certonly –standalone 이메일입력, Y, N, 도메인입력 sudo systemctl start httpd sudo vi /etc/httpd/conf.d/ssl.conf DocumentRoot “/var/www/html” ServerAlias … Read more

VirtualHost 샘플 및 빠른 폴더 권한

d

1. VirtualHost 샘플 sudo vi /etc/httpd/conf.d/도메인.conf.d DocumentRoot /var/www/html ServerName 도메인네임 ServerAlias 도메인네임 Options FollowSymLinks AllowOverride All Order allow,deny Allow from all #RewriteEngine On #RewriteCond %{HTTPS} off #RewriteRule ^(.)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] 2. /var/www 및 이하 모든 디렉터리에 읽기, 쓰기, 실행 빠른 권한 설정​ chown -R apache:apache /var/www/ chmod 2775 /var/www find /var/www/ -type d -exec sudo … Read more