Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
7711f813
Commit
7711f813
authored
Aug 12, 2012
by
David Ormsbee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add nginx.conf file for running a multi-server dev env
parent
54b0a465
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
67 additions
and
0 deletions
+67
-0
proxy/nginx.conf
+67
-0
No files found.
proxy/nginx.conf
0 → 100644
View file @
7711f813
# Mapping of
#
# From the /mitx directory:
# /usr/local/Cellar/nginx/1.2.2/sbin/nginx -p `pwd`/ -c nginx.conf
worker_processes
1
;
events
{
worker_connections
1024
;
}
http
{
##
# Basic Settings
##
sendfile
on
;
tcp_nopush
on
;
tcp_nodelay
on
;
keepalive_timeout
65
;
types_hash_max_size
2048
;
# server_tokens off;
# server_names_hash_bucket_size 64;
# server_name_in_redirect off;
include
/usr/local/etc/nginx/mime.types
;
default_type
application/octet-stream
;
##
# Gzip Settings
##
gzip
on
;
gzip_disable
"msie6"
;
upstream
portal
{
server
localhost
:
8000
;
}
upstream
course_harvardx_cs50_2012
{
server
localhost
:
8001
;
}
upstream
course_mitx_6002_2012_fall
{
server
localhost
:
8002
;
}
# Mostly copied from our existing server...
server
{
listen
8100
default_server
;
rewrite
^(.*)/favicon.ico
$
/static/images/favicon.ico
last
;
# Our catchall
location
/
{
proxy_pass
http://portal
;
}
location
/courses/HarvardX/CS50x/2012/
{
proxy_pass
http://course_harvardx_cs50_2012
;
}
location
/courses/MITx/6.002x/2012_Fall/
{
proxy_pass
http://course_mitx_6002_2012_fall
;
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment