Skip to content

Commit

Permalink
IPv6 support added
Browse files Browse the repository at this point in the history
  • Loading branch information
A5hleyRich committed Oct 14, 2016
1 parent 7a09626 commit 3ca0550
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 4 deletions.
1 change: 1 addition & 0 deletions sites-available/default
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;

return 444;
Expand Down
2 changes: 2 additions & 0 deletions sites-available/fastcgi-cache.com
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ fastcgi_cache_path /sites/fastcgi-cache.com/cache levels=1:2 keys_zone=fastcgi-c
server {
# Ports to listen on
listen 80;
listen [::]:80;

# Server name to listen for
server_name fastcgi-cache.com;
Expand Down Expand Up @@ -58,6 +59,7 @@ server {
# Redirect www to non-www
server {
listen 80;
listen [::]:80;
server_name www.fastcgi-cache.com;

return 301 $scheme:https://fastcgi-cache.com$request_uri;
Expand Down
2 changes: 2 additions & 0 deletions sites-available/multisite-subdirectory.com
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
server {
# Ports to listen on
listen 80;
listen [::]:80;

# Server name to listen for
server_name multisite-subdirectory.com;
Expand Down Expand Up @@ -38,6 +39,7 @@ server {
# Redirect www to non-www
server {
listen 80;
listen [::]:80;
server_name www.multisite-subdirectory.com;

return 301 $scheme:https://multisite-subdirectory.com$request_uri;
Expand Down
2 changes: 2 additions & 0 deletions sites-available/multisite-subdomain.com
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
server {
# Ports to listen on
listen 80;
listen [::]:80;

# Server name to listen for
server_name multisite-subdomain.com *.multisite-subdomain.com;
Expand Down Expand Up @@ -35,6 +36,7 @@ server {
# Redirect www to non-www
server {
listen 80;
listen [::]:80;
server_name www.multisite-subdomain.com;

return 301 $scheme:https://multisite-subdomain.com$request_uri;
Expand Down
2 changes: 2 additions & 0 deletions sites-available/singlesite.com
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
server {
# Ports to listen on
listen 80;
listen [::]:80;

# Server name to listen for
server_name singlesite.com;
Expand Down Expand Up @@ -35,6 +36,7 @@ server {
# Redirect www to non-www
server {
listen 80;
listen [::]:80;
server_name www.singlesite.com;

return 301 $scheme:https://singlesite.com$request_uri;
Expand Down
6 changes: 4 additions & 2 deletions sites-available/ssl-fastcgi-cache.com
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ fastcgi_cache_path /sites/ssl-fastcgi-cache.com/cache levels=1:2 keys_zone=ssl-f

server {
# Ports to listen on, uncomment one.
listen 443 ssl;
# listen 443 ssl http2;
listen 443 ssl http2;
listen [::]:443 ssl http2;

# Server name to listen for
server_name ssl-fastcgi-cache.com;
Expand Down Expand Up @@ -66,6 +66,7 @@ server {
# Redirect http to https
server {
listen 80;
listen [::]:80;
server_name ssl-fastcgi-cache.com www.ssl-fastcgi-cache.com;

return 301 https://ssl-fastcgi-cache.com$request_uri;
Expand All @@ -74,6 +75,7 @@ server {
# Redirect www to non-www
server {
listen 443;
listen [::]:443;
server_name www.ssl-fastcgi-cache.com;

return 301 https://ssl-fastcgi-cache.com$request_uri;
Expand Down
6 changes: 4 additions & 2 deletions sites-available/ssl.com
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
server {
# Ports to listen on, uncomment one.
listen 443 ssl;
# listen 443 ssl http2;
listen 443 ssl http2;
listen [::]:443 ssl http2;

# Server name to listen for
server_name ssl.com;
Expand Down Expand Up @@ -43,6 +43,7 @@ server {
# Redirect http to https
server {
listen 80;
listen [::]:80;
server_name ssl.com www.ssl.com;

return 301 https://ssl.com$request_uri;
Expand All @@ -51,6 +52,7 @@ server {
# Redirect www to non-www
server {
listen 443;
listen [::]:443;
server_name www.ssl.com;

return 301 https://ssl.com$request_uri;
Expand Down

0 comments on commit 3ca0550

Please sign in to comment.