Skip to content

Instantly share code, notes, and snippets.

@cedricvidal
Forked from foxxyz/nginx.conf
Last active June 5, 2017 16:57
Show Gist options
  • Select an option

  • Save cedricvidal/d82b511e46fd43ed1ba353fa5301800d to your computer and use it in GitHub Desktop.

Select an option

Save cedricvidal/d82b511e46fd43ed1ba353fa5301800d to your computer and use it in GitHub Desktop.

Revisions

  1. cedricvidal revised this gist Jun 5, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion nginx.conf
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    # Extremely basic development setup to serve the current directory at http://localhost:9001
    # Start nginx in this directory with `nginx -p . -c nginx.conf`
    # Start nginx in this directory with `nginx -p . -c $PWD/nginx.conf`
    # Stop nginx with `nginx -p . -s stop`
    events {}

  2. cedricvidal revised this gist Jun 5, 2017. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions nginx.conf
    Original file line number Diff line number Diff line change
    @@ -3,6 +3,8 @@
    # Stop nginx with `nginx -p . -s stop`
    events {}

    daemon off;

    http {
    # Serve files with correct mimetypes on OSX
    # location may have to be adjusted depending on your OS and nginx install
  3. @foxxyz foxxyz revised this gist Sep 29, 2015. 1 changed file with 12 additions and 10 deletions.
    22 changes: 12 additions & 10 deletions nginx.conf
    Original file line number Diff line number Diff line change
    @@ -4,16 +4,18 @@
    events {}

    http {
    include /usr/local/etc/nginx/mime.types;
    # Serve files with correct mimetypes on OSX
    # location may have to be adjusted depending on your OS and nginx install
    include /usr/local/etc/nginx/mime.types;

    server {
    listen 9001;
    access_log http.access.log;
    error_log http.error.log;

    root .;
    location / {

    server {
    listen 9001;
    access_log http.access.log;
    error_log http.error.log;

    root .;
    location / {

    }
    }
    }
    }
  4. @foxxyz foxxyz created this gist Sep 29, 2015.
    19 changes: 19 additions & 0 deletions nginx.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    # Extremely basic development setup to serve the current directory at http://localhost:9001
    # Start nginx in this directory with `nginx -p . -c nginx.conf`
    # Stop nginx with `nginx -p . -s stop`
    events {}

    http {
    include /usr/local/etc/nginx/mime.types;

    server {
    listen 9001;
    access_log http.access.log;
    error_log http.error.log;

    root .;
    location / {

    }
    }
    }