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 | 31 |
Tags
- mysql
- Fail2ban
- centos
- front page
- https
- git pull
- crontab
- Google Cloud
- Certbot
- LetsEncrypt
- Linux
- home page
- CentOS7
- DOM Parser
- Liniux
- child theme
- MariaDB
- vscode
- Xdebug
- root
- new user
- launch.json
- 구글 클라우드
- SSL
- wordpress
- php
- Mac
- Apache
- html
- non-www
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