Skip to content

Commit

Permalink
Port 80 auto rewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
mashirozx committed Sep 17, 2018
1 parent bdd4e7f commit 81d1b24
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
6 changes: 5 additions & 1 deletion conf/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,13 @@ http {
server 210.140.92.135:443;
server 210.140.92.136:443;
}

server {
listen 80 default_server;
rewrite ^(.*) https://$host$1 permanent;
}

server {
#listen 80;
listen 443 ssl;
server_name pixiv.net;
server_name www.pixiv.net;
Expand Down
2 changes: 1 addition & 1 deletion logs/nginx.pid
Original file line number Diff line number Diff line change
@@ -1 +1 @@
14548
9548
6 changes: 5 additions & 1 deletion 配置文件(非Windows用户使用)/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,13 @@ http {
server 210.140.92.135:443;
server 210.140.92.136:443;
}

server {
listen 80 default_server;
rewrite ^(.*) https://$host$1 permanent;
}

server {
#listen 80;
listen 443 ssl;
server_name pixiv.net;
server_name www.pixiv.net;
Expand Down

0 comments on commit 81d1b24

Please sign in to comment.