sudo vi /etc/nginx/sites-available/SITEDOMAIN

 

server {
  listen 80 default_server;
  listen [::]:80 default_server;
  server_name _;
  return 301 https://$host$request_uri;
}

 

The first listen statement is for HTTP port of IPv4.

The second listen statement if for HTTP port of IPv6.

You can redirect from specific domain name as following:

server_name example.com www.example.com

 

 

 







TitleNickname
32acer computer tableTT670
31vultr $3.5 요금제 출시초코보760
30NVIDIA GeForce RTX 2080 벤치 점수 유출초코보1110
2960만 달러 이상 가치의 컴퓨터안녕590
28Vultr Tokyo sysbench performance benchmark resultTT950
27윈도우가 자꾸 다운되던 현상 1TT860
26윈도우에서 디스크검사하는 방법TT810
25NVIDIA Announces the GeForce RTX 20 Series: RTX 2080 Ti & 2080 on Sept. 20th, RTX 2070 in Octobergame730
24Atomic Heart: Official GeForce RTX VideoIOI660
23Cinebench R15 - Multi-Core Performance안녕710
22how to redirect HTTP to HTTPS on nginxTT910
21how to check the file count in a folder (Ubuntu,CentOS,Linux)TT1010
20how to check disk space usage or free disk space on UbuntuTT910
19how to check ubuntu free memoryTT860
18How to change timezone on Ubuntu 18.xTT920
17how to use ubuntu firewall (ufw) 우분투 방화벽 ufw사용하는 법TT1270
16PC고장 비프음에 따른 진단TT1080
15라이젠 스레드리퍼 성능 벤치마크 (Ryzen ThreadRipper Benchmark)초코보1270
14eGPU : 외장 그래픽카드 박스TT2310
13모네로(XMR) 채굴속도 (monero mining hashrate)초코보8160
12이더리움 채굴속도 (Ethereum mining hashrate)초코보3590


One Line Message