-
-
Save SwadhInz/dce94863f735a5455a9221cbdf514e19 to your computer and use it in GitHub Desktop.
Revisions
-
edm00se revised this gist
Mar 23, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ ### Read Me In order to access a server hosted within a vm (guest), for development purposes from the host OS, which is restricted to same origin / localhost only requests, I set up a siple nginx reverse proxy to forward my requests. ### Steps -
edm00se revised this gist
Mar 23, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -19,6 +19,6 @@ More information on the implementation of nginx in Windows can be found on [the | nginx -s reopen | re-open log files | ### Description The config file contains a _server_ block, inside which is a _location /_ block. Inside that location block, we need to replace the root and index assignment with a *proxy_pass http://127.0.0.1:8080;* line and a *proxy_http_version 1.1;* line. ### Profit -
edm00se revised this gist
Mar 23, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -19,6 +19,6 @@ More information on the implementation of nginx in Windows can be found on [the | nginx -s reopen | re-open log files | ### Description The config file contains a _server_ block, inside which is a _location /_ block. Inside that location block, we need to comment out the root and index assignment and add in a *proxy_pass http://127.0.0.1:8080;* line and a *proxy_http_version 1.1;* line. ### Profit -
edm00se revised this gist
Mar 22, 2015 . 1 changed file with 0 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -11,12 +11,6 @@ server { gzip_disable "MSIE [1-6]\."; ... location / { # Backend server to forward requests to/from -
edm00se revised this gist
Mar 22, 2015 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -12,6 +12,7 @@ server { ... # default location / block #location / { # root html; # index index.html index.htm; -
edm00se revised this gist
Mar 22, 2015 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -10,12 +10,12 @@ In order to access a server hosted within a vm, for development purposes, which #### Commands for Windows More information on the implementation of nginx in Windows can be found on [the corresponding docs page](//nginx.org/en/docs/windows.html). Here's the basic breakdown of commands, form within the nginx install directory: | Command | | |-----------------|--------------------------------------------------------------------------------------| | start nginx | starts the process | | nginx -s stop | fast shutdown | | nginx -s quit | graceful shutdown | | nginx -s reload | config change, graceful shutdown of existing worker proc, starts new | | nginx -s reopen | re-open log files | ### Description -
edm00se revised this gist
Mar 22, 2015 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,6 +3,7 @@ server { listen 80; server_name localhost; # adds gzip options gzip on; gzip_types text/css text/plain text/xml application/xml application/javascript application/x-javascript text/javascript application/json text/x-json; gzip_proxied no-store no-cache private expired auth; @@ -21,6 +22,7 @@ server { proxy_pass http://127.0.0.1:8080; proxy_http_version 1.1; # adds gzip gzip_static on; } -
edm00se revised this gist
Mar 22, 2015 . 1 changed file with 11 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,6 +7,17 @@ In order to access a server hosted within a vm, for development purposes, which 2. Edit the _<install path>/conf/nginx.conf_ file with the marked changes in the file of the same name in this gist. 3. Start the nginx executable, located in your install path. There are service wrappers for Windows, or you can just kill the process to stop the nginx instance. #### Commands for Windows More information on the implementation of nginx in Windows can be found on [the corresponding docs page](//nginx.org/en/docs/windows.html). Here's the basic breakdown of commands, form within the nginx install directory: | Command | | |-----------------|--------------------------------------------------------------------------------------| | start nginx | starts the process | | nginx -s stop | fast shutdown | | nginx -s quit | graceful shutdown | | nginx -s reload | config change, graceful shutdown of existing worker proc, starts new with new config | | nginx -s reopen | re-open log files | ### Description The config file contains a _server {}_ block, inside which is a _location / {}_ block. Inside that location block, we need to comment out the root and index assignment and add in a *proxy_pass http://127.0.0.1:8080;* line and a *proxy_http_version 1.1;* line. -
edm00se revised this gist
Mar 22, 2015 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,8 +4,8 @@ In order to access a server hosted within a vm, for development purposes, which ### Steps 1. To install in a Windows VM, download and install [nginx](http://nginx.org/) from the current, stable release; I installed to C:\nginx\ 2. Edit the _<install path>/conf/nginx.conf_ file with the marked changes in the file of the same name in this gist. 3. Start the nginx executable, located in your install path. There are service wrappers for Windows, or you can just kill the process to stop the nginx instance. ### Description The config file contains a _server {}_ block, inside which is a _location / {}_ block. Inside that location block, we need to comment out the root and index assignment and add in a *proxy_pass http://127.0.0.1:8080;* line and a *proxy_http_version 1.1;* line. -
edm00se revised this gist
Mar 22, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,7 +6,7 @@ server { gzip on; gzip_types text/css text/plain text/xml application/xml application/javascript application/x-javascript text/javascript application/json text/x-json; gzip_proxied no-store no-cache private expired auth; #gzip_min_length 1000; gzip_disable "MSIE [1-6]\."; ... -
edm00se revised this gist
Mar 22, 2015 . 1 changed file with 9 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,6 +2,12 @@ server { listen 80; server_name localhost; gzip on; gzip_types text/css text/plain text/xml application/xml application/javascript application/x-javascript text/javascript application/json text/x-json; gzip_proxied no-store no-cache private expired auth; gzip_min_length 1000; gzip_disable "MSIE [1-6]\."; ... @@ -14,6 +20,9 @@ server { # Backend server to forward requests to/from proxy_pass http://127.0.0.1:8080; proxy_http_version 1.1; gzip_static on; } ... ... -
edm00se revised this gist
Mar 22, 2015 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,6 +5,7 @@ In order to access a server hosted within a vm, for development purposes, which 1. To install in a Windows VM, download and install [nginx](http://nginx.org/) from the current, stable release; I installed to C:\nginx\ 2. Executing the nginx.exe in your install path will start the nginx server with default configuration, edit the _conf/nginx.conf_ file with the marked changes in the file of the same name in this gist. 3. Start the nginx executable. You can invoke from a command prompt or double click. There are service wrappers for Windows, or you can just kill the process to stop the nginx instance. ### Description The config file contains a _server {}_ block, inside which is a _location / {}_ block. Inside that location block, we need to comment out the root and index assignment and add in a *proxy_pass http://127.0.0.1:8080;* line and a *proxy_http_version 1.1;* line. -
edm00se revised this gist
Mar 22, 2015 . 1 changed file with 5 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,3 +5,8 @@ In order to access a server hosted within a vm, for development purposes, which 1. To install in a Windows VM, download and install [nginx](http://nginx.org/) from the current, stable release; I installed to C:\nginx\ 2. Executing the nginx.exe in your install path will start the nginx server with default configuration, edit the _conf/nginx.conf_ file with the marked changes in the file of the same name in this gist. ### Description The config file contains a _server {}_ block, inside which is a _location / {}_ block. Inside that location block, we need to comment out the root and index assignment and add in a *proxy_pass http://127.0.0.1:8080;* line and a *proxy_http_version 1.1;* line. ### Profit -
edm00se revised this gist
Mar 22, 2015 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ ### Read Me In order to access a server hosted within a vm, for development purposes, which is restricted to same origin / localhost only requests, I set up a siple nginx reverse proxy to forward my requests. ### Steps 1. To install in a Windows VM, download and install [nginx](http://nginx.org/) from the current, stable release; I installed to C:\nginx\ 2. Executing the nginx.exe in your install path will start the nginx server with default configuration, edit the _conf/nginx.conf_ file with the marked changes in the file of the same name in this gist. -
edm00se revised this gist
Mar 22, 2015 . 1 changed file with 7 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ ## Read Me In order to access a server hosted within a vm, for development purposes, which is restricted to same origin / localhost only requests, I set up a siple nginx reverse proxy to forward my requests. ## Steps 1. To install in a Windows VM, download and install [nginx](http://nginx.org/) from the current, stable release; I installed to C:\nginx\ 2. Executing the nginx.exe in your install path will start the nginx server with default configuration, edit the _conf/nginx.conf_ file with the marked changes in the file of the same name in this gist. -
edm00se revised this gist
Mar 22, 2015 . 1 changed file with 5 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -10,11 +10,10 @@ server { # index index.html index.htm; #} location / { # Backend server to forward requests to/from proxy_pass http://127.0.0.1:8080; proxy_http_version 1.1; } ... ... -
edm00se created this gist
Mar 22, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,20 @@ ... server { listen 80; server_name localhost; ... #location / { # root html; # index index.html index.htm; #} location / { # Backend server to forward requests to/from proxy_pass http://127.0.0.1:8080; proxy_http_version 1.1; } ... } ...