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 tableTT1050
31vultr $3.5 요금제 출시초코보1180
30NVIDIA GeForce RTX 2080 벤치 점수 유출초코보1710
2960만 달러 이상 가치의 컴퓨터안녕950
28Vultr Tokyo sysbench performance benchmark resultTT1510
27윈도우가 자꾸 다운되던 현상 1TT1290
26윈도우에서 디스크검사하는 방법TT1270
25NVIDIA Announces the GeForce RTX 20 Series: RTX 2080 Ti & 2080 on Sept. 20th, RTX 2070 in Octobergame1100
24Atomic Heart: Official GeForce RTX VideoIOI1050
23Cinebench R15 - Multi-Core Performance안녕1050
22how to redirect HTTP to HTTPS on nginxTT1310
21how to check the file count in a folder (Ubuntu,CentOS,Linux)TT1560
20how to check disk space usage or free disk space on UbuntuTT1390
19how to check ubuntu free memoryTT1290
18How to change timezone on Ubuntu 18.xTT1360
17how to use ubuntu firewall (ufw) 우분투 방화벽 ufw사용하는 법TT1790
16PC고장 비프음에 따른 진단TT1480
15라이젠 스레드리퍼 성능 벤치마크 (Ryzen ThreadRipper Benchmark)초코보1610
14eGPU : 외장 그래픽카드 박스TT2940
13모네로(XMR) 채굴속도 (monero mining hashrate)초코보8580
12이더리움 채굴속도 (Ethereum mining hashrate)초코보3930


One Line Message