Skip to content

Instantly share code, notes, and snippets.

@simonlehmann
Last active July 20, 2017 07:45
Show Gist options
  • Select an option

  • Save simonlehmann/c4b9c7708e00faa2fe4e398f80d71386 to your computer and use it in GitHub Desktop.

Select an option

Save simonlehmann/c4b9c7708e00faa2fe4e398f80d71386 to your computer and use it in GitHub Desktop.

Revisions

  1. simonlehmann revised this gist Jul 20, 2017. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion nginx.conf
    Original file line number Diff line number Diff line change
    @@ -11,7 +11,6 @@ html {
    listen *:443 default_server;
    server_name _;

    # Your SSL configuration
    ssl_certificate /etc/nginx/ssl/example.com/ssl-bundle.crt;
    ssl_certificate_key /etc/nginx/ssl/example.com/example.com.key;

  2. simonlehmann revised this gist Jul 20, 2017. 1 changed file with 6 additions and 2 deletions.
    8 changes: 6 additions & 2 deletions nginx.conf
    Original file line number Diff line number Diff line change
    @@ -7,9 +7,13 @@ html {

    # Default catch-all server block
    server {
    listen 80 default_server;
    listen 443 default_server;
    listen *:80 default_server;
    listen *:443 default_server;
    server_name _;

    # Your SSL configuration
    ssl_certificate /etc/nginx/ssl/example.com/ssl-bundle.crt;
    ssl_certificate_key /etc/nginx/ssl/example.com/example.com.key;

    return 404;
    }
  3. simonlehmann revised this gist Jul 20, 2017. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion nginx.conf
    Original file line number Diff line number Diff line change
    @@ -8,8 +8,9 @@ html {
    # Default catch-all server block
    server {
    listen 80 default_server;
    listen 443;
    listen 443 default_server;
    server_name _;

    return 404;
    }

  4. simonlehmann revised this gist Jul 20, 2017. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions nginx.conf
    Original file line number Diff line number Diff line change
    @@ -7,6 +7,9 @@ html {

    # Default catch-all server block
    server {
    listen 80 default_server;
    listen 443;
    server_name _;
    return 404;
    }

  5. simonlehmann revised this gist Jul 20, 2017. 1 changed file with 12 additions and 12 deletions.
    24 changes: 12 additions & 12 deletions nginx.conf
    Original file line number Diff line number Diff line change
    @@ -1,15 +1,15 @@
    html {
    [...]

    ##
    # Virtual Host Configs
    ##

    # Default catch-all server
    server {
    return 404;:
    }
    [...]

    include /etc/nginx/conf.d/*.conf;
    include /etc/nginx/sites-enabled/*;
    ##
    # Virtual Host Configs
    ##

    # Default catch-all server block
    server {
    return 404;
    }

    include /etc/nginx/conf.d/*.conf;
    include /etc/nginx/sites-enabled/*;
    }
  6. simonlehmann created this gist Jul 20, 2017.
    15 changes: 15 additions & 0 deletions nginx.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    html {
    [...]

    ##
    # Virtual Host Configs
    ##

    # Default catch-all server
    server {
    return 404;:
    }

    include /etc/nginx/conf.d/*.conf;
    include /etc/nginx/sites-enabled/*;
    }