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


One Line Message