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