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


One Line Message