일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
- vscode
- MariaDB
- php
- Apache
- Fail2ban
- centos
- Certbot
- launch.json
- mysql
- Mac
- home page
- child theme
- html
- SSL
- Linux
- wordpress
- new user
- Google Cloud
- Liniux
- non-www
- Xdebug
- 구글 클라우드
- crontab
- https
- root
- front page
- DOM Parser
- git pull
- CentOS7
- LetsEncrypt
- Today
- Total
목록Apache (3)
between 0 and 1
Step 1. create ssl certificate $ letsencrypt Step 2. create .htaccess file on webroot and save below contents. RewriteEngine On RewriteCond %{HTTPS} off RewriteCond %{ENV:HTTPS} off RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE] RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] RewriteRule ^ https://%1%{REQUEST_URI} [L,R=301,NE] Step 3. set vhost.conf ServerName example.com ServerAlias ww..
Local SSL development (for localhost) 1) create Certificate authority (CA) for local machine $> openssl req -x509 -nodes -new -sha256 -days 1024 -newkey rsa:2048 -keyout RootCA.key -out RootCA.pem -subj "/C=US/CN=Example-Root-CA" $> openssl x509 -outform pem -in RootCA.pem -out RootCA.crt 2) create Domain name certificate create a domains.ext file with following contents authorityKeyIdentifier=k..
CentOS 7에 서버환경을 구축하는 간단한 방법!(Apache, PHP, MariaDB) 1. 서버 환경 설치 - Apache, PHP, MariaDB $> yum install httpd php mariadb-server php-mysql 2. 시작 서비스로 등록 - 서버가 부팅될 때 서비스가 자동으로 시작되도록 등록 $> systemctl enable httpd$> systemctl enable mariadb 3. 서비스 시작$> systemctl start httpd$> systemctl start mariadb 4. MariaDB 관리자 비밀번호 설정$> mysql_secure_installation 5. MariaDB 외부에서 접근 가능하도록 설정1) root 계정으로 MariaDB 접속$> ..