forked from JeremyRubin/Junkyard-Jumbotron
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathINFO.txt
42 lines (33 loc) · 1.1 KB
/
INFO.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Make an nginx server!
to edit it, go to:
/etc/nginx/sites-available/default
put this in:
# You may add here your
# server {
# ...
# }
# statements for each of your virtual hosts to this file
##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# http://wiki.nginx.org/Pitfalls
# http://wiki.nginx.org/QuickStart
# http://wiki.nginx.org/Configuration
#
# Generally, you will want to move this file somewhere, and start with a clean
# file but keep this around for reference. Or just disable in sites-enabled.
#
# Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
##
server {
proxy_read_timeout 200000;
proxy_send_timeout 200000;
listen 8090; ## listen for ipv4; this line is default and implied
#listen [::]:80 default ipv6only=on; ## listen for ipv6
root "/home/green/Desktop/Media Lab/Junkyard-Jumbotron/public/";
# Make site accessible from http://localhost/
server_name localhost;
autoindex on;
}
to start it:
$ sudo service ngninx start OR $ sudo service ngninx restart