250x250
반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- Xdebug
- launch.json
- Google Cloud
- Linux
- html
- home page
- child theme
- mysql
- root
- LetsEncrypt
- CentOS7
- 구글 클라우드
- non-www
- SSL
- Fail2ban
- MariaDB
- centos
- wordpress
- https
- vscode
- front page
- DOM Parser
- Apache
- Mac
- crontab
- git pull
- Liniux
- php
- Certbot
- new user
Archives
- Today
- Total
목록non-www (1)
between 0 and 1
[SSL, Apache] http -> https & www to non-www setting
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..
Software Development Engineering/Dev.Info.
2021. 2. 10. 00:37