Update to nginx-0.8.32. Way too many changes to list after two years of development. Based on wip/nginx.diff -r1.6 -r1.7 pkgsrc/www/nginx/Makefile
(joerg)
@@ -1,63 +1,92 @@ | @@ -1,63 +1,92 @@ | |||
1 | # $NetBSD: Makefile,v 1.6 2010/01/22 13:44:06 ghen Exp $ | 1 | # $NetBSD: Makefile,v 1.7 2010/01/23 16:32:11 joerg Exp $ | |
2 | 2 | |||
3 | DISTNAME= nginx-0.5.35 | 3 | DISTNAME= nginx-0.8.32 | |
4 | PKGREVISION= 1 | |||
5 | CATEGORIES= www | 4 | CATEGORIES= www | |
6 | MASTER_SITES= http://sysoev.ru/nginx/ | 5 | MASTER_SITES= http://sysoev.ru/nginx/ | |
7 | 6 | |||
8 | MAINTAINER= pkgsrc-users@NetBSD.org | 7 | MAINTAINER= joerg@NetBSD.org | |
9 | HOMEPAGE= http://nginx.net/ | 8 | HOMEPAGE= http://nginx.net/ | |
10 | COMMENT= Lightweight HTTP server and mail proxy server | 9 | COMMENT= Lightweight HTTP server and mail proxy server | |
10 | LICENSE= 2-clause-bsd | |||
11 | 11 | |||
12 | PKG_DESTDIR_SUPPORT= user-destdir | 12 | PKG_DESTDIR_SUPPORT= user-destdir | |
13 | 13 | |||
14 | .include "../../mk/bsd.prefs.mk" | |||
15 | ||||
16 | NGINX_USER?= nginx | |||
17 | NGINX_GROUP?= nginx | |||
18 | NGINX_DATADIR?= ${VARBASE}/db/nginx | |||
19 | NGINX_LOGDIR?= ${VARBASE}/log/nginx | |||
20 | NGINX_PIDDIR?= ${VARBASE}/run | |||
21 | ||||
22 | BUILD_DEFS+= NGINX_DATADIR NGINX_LOGDIR NGINX_PIDDIR | |||
23 | ||||
24 | PKG_USERS_VARS+= NGINX_USER | |||
25 | PKG_GROUPS_VARS+= NGINX_GROUP | |||
26 | PKG_GROUPS= ${NGINX_GROUP} | |||
27 | PKG_USERS= ${NGINX_USER}:${NGINX_GROUP} | |||
28 | ||||
29 | PKG_GECOS.${NGINX_USER}=NGINX server user | |||
30 | PKG_HOME.${NGINX_USER}= ${NGINX_DATADIR} | |||
31 | PKG_SHELL.${NGINX_USER}=${NOLOGIN} | |||
32 | ||||
14 | USE_PKGLOCALEDIR= yes | 33 | USE_PKGLOCALEDIR= yes | |
15 | HAS_CONFIGURE= yes | 34 | HAS_CONFIGURE= yes | |
35 | CONFIGURE_ARGS+= --user=${NGINX_USER} | |||
36 | CONFIGURE_ARGS+= --group=${NGINX_GROUP} | |||
16 | CONFIGURE_ARGS+= --with-ld-opt=-L${PREFIX}/lib\ -Wl,-R${PREFIX}/lib | 37 | CONFIGURE_ARGS+= --with-ld-opt=-L${PREFIX}/lib\ -Wl,-R${PREFIX}/lib | |
17 | CONFIGURE_ARGS+= --prefix=${PREFIX} | 38 | CONFIGURE_ARGS+= --prefix=${PREFIX} | |
18 | CONFIGURE_ARGS+= --sbin-path=${PREFIX}/sbin | 39 | CONFIGURE_ARGS+= --sbin-path=${PREFIX}/sbin | |
19 | CONFIGURE_ARGS+= --conf-path=${PKG_SYSCONFDIR}/nginx.conf | 40 | CONFIGURE_ARGS+= --conf-path=${PKG_SYSCONFDIR}/nginx.conf | |
20 | CONFIGURE_ARGS+= --pid-path=${VARBASE}/run/nginx.pid | 41 | CONFIGURE_ARGS+= --pid-path=${NGINX_PIDDIR}/nginx.pid | |
42 | CONFIGURE_ARGS+= --lock-path=${NGINX_DATADIR}/nginx.lock | |||
21 | CONFIGURE_ARGS+= --error-log-path=${NGINX_LOGDIR}/error.log | 43 | CONFIGURE_ARGS+= --error-log-path=${NGINX_LOGDIR}/error.log | |
22 | CONFIGURE_ARGS+= --http-log-path=${NGINX_LOGDIR}/access.log | 44 | CONFIGURE_ARGS+= --http-log-path=${NGINX_LOGDIR}/access.log | |
23 | CONFIGURE_ARGS+= --with-mail | 45 | CONFIGURE_ARGS+= --http-client-body-temp-path=${NGINX_DATADIR}/client_body_temp | |
46 | CONFIGURE_ARGS+= --http-proxy-temp-path=${NGINX_DATADIR}/proxy_temp | |||
47 | CONFIGURE_ARGS+= --http-fastcgi-temp-path=${NGINX_DATADIR}/fstcgi_temp | |||
24 | 48 | |||
25 | .include "../../mk/bsd.prefs.mk" | 49 | .include "../../mk/bsd.prefs.mk" | |
26 | 50 | |||
27 | PKG_SYSCONFSUBDIR= nginx | 51 | PKG_SYSCONFSUBDIR= nginx | |
28 | NGINX_LOGDIR?= ${VARBASE}/log/nginx | |||
29 | 52 | |||
30 | EGDIR= ${PREFIX}/share/examples/nginx | 53 | EGDIR= ${PREFIX}/share/examples/nginx | |
31 | EGFILES= fastcgi_params koi-utf koi-win mime.types nginx.conf win-utf | 54 | EGFILES= fastcgi.conf fastcgi_params koi-utf koi-win \ | |
55 | mime.types nginx.conf win-utf | |||
32 | 56 | |||
33 | .for file in ${EGFILES} | 57 | .for file in ${EGFILES} | |
34 | CONF_FILES+= ${EGDIR}/conf/${file} ${PKG_SYSCONFDIR}/${file} | 58 | CONF_FILES+= ${EGDIR}/conf/${file} ${PKG_SYSCONFDIR}/${file} | |
35 | .endfor | 59 | .endfor | |
36 | 60 | |||
37 | RCD_SCRIPTS= nginx | 61 | RCD_SCRIPTS= nginx | |
38 | 62 | |||
39 | INSTALLATION_DIRS= sbin share/examples/nginx/conf share/examples/nginx/html | 63 | INSTALLATION_DIRS= sbin share/examples/nginx/conf share/examples/nginx/html | |
40 | OWN_DIRS= ${NGINX_LOGDIR} | 64 | OWN_DIRS= ${NGINX_LOGDIR} | |
41 | 65 | OWN_DIRS_PERMS+= ${NGINX_DATADIR} ${NGINX_USER} ${NGINX_GROUP} 0700 | ||
42 | BUILD_DEFS+= PKG_SYSCONFBASE NGINX_LOGDIR VARBASE | |||
43 | 66 | |||
44 | BUILD_TARGET= build | 67 | BUILD_TARGET= build | |
45 | 68 | |||
46 | SUBST_CLASSES+= paths | 69 | SUBST_CLASSES+= paths | |
47 | SUBST_STAGE.paths= pre-configure | 70 | SUBST_STAGE.paths= pre-configure | |
48 | SUBST_FILES.paths= conf/nginx.conf | 71 | SUBST_FILES.paths= conf/nginx.conf | |
49 | SUBST_SED.paths= -e 's,%%PKG_SYSCONFDIR%%,${PKG_SYSCONFDIR},g' | 72 | SUBST_SED.paths= -e 's,%%PKG_SYSCONFDIR%%,${PKG_SYSCONFDIR},g' | |
50 | SUBST_SED.paths+= -e 's,%%NGINX_LOGDIR%%,${NGINX_LOGDIR},g' | 73 | SUBST_SED.paths+= -e 's,%%NGINX_LOGDIR%%,${NGINX_LOGDIR},g' | |
74 | SUBST_SED.paths+= -e 's,%%NGINX_PIDDIR%%,${NGINX_PIDDIR},g' | |||
75 | SUBST_SED.paths+= -e 's,%%NGINX_USER%%,${NGINX_USER},g' | |||
76 | SUBST_SED.paths+= -e 's,%%NGINX_GROUP%%,${NGINX_GROUP},g' | |||
77 | ||||
78 | MESSAGE_SUBST+= NGINX_LOGDIR=${NGINX_LOGDIR} | |||
79 | MESSAGE_SUBST+= NGINX_PIDDIR=${NGINX_PIDDIR} | |||
51 | 80 | |||
52 | do-install: | 81 | do-install: | |
53 | ${INSTALL_PROGRAM} ${WRKSRC}/objs/nginx ${DESTDIR}${PREFIX}/sbin/nginx | 82 | ${INSTALL_PROGRAM} ${WRKSRC}/objs/nginx ${DESTDIR}${PREFIX}/sbin/nginx | |
54 | .for file in ${EGFILES} | 83 | .for file in ${EGFILES} | |
55 | ${INSTALL_DATA} ${WRKSRC}/conf/${file} ${DESTDIR}${EGDIR}/conf/${file} | 84 | ${INSTALL_DATA} ${WRKSRC}/conf/${file} ${DESTDIR}${EGDIR}/conf/${file} | |
56 | .endfor | 85 | .endfor | |
57 | ${INSTALL_DATA} ${WRKSRC}/html/50x.html ${DESTDIR}${EGDIR}/html/50x.html | 86 | ${INSTALL_DATA} ${WRKSRC}/html/50x.html ${DESTDIR}${EGDIR}/html/50x.html | |
58 | ${INSTALL_DATA} ${WRKSRC}/html/index.html ${DESTDIR}${EGDIR}/html/index.html | 87 | ${INSTALL_DATA} ${WRKSRC}/html/index.html ${DESTDIR}${EGDIR}/html/index.html | |
59 | 88 | |||
60 | .include "options.mk" | 89 | .include "options.mk" | |
61 | 90 | |||
62 | .include "../../devel/zlib/buildlink3.mk" | 91 | .include "../../devel/zlib/buildlink3.mk" | |
63 | .include "../../mk/bsd.pkg.mk" | 92 | .include "../../mk/bsd.pkg.mk" |
@@ -1,11 +1,12 @@ | @@ -1,11 +1,12 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.2 2009/06/14 22:00:29 joerg Exp $ | 1 | @comment $NetBSD: PLIST,v 1.3 2010/01/23 16:32:11 joerg Exp $ | |
2 | sbin/nginx | 2 | sbin/nginx | |
3 | share/examples/nginx/conf/fastcgi.conf | |||
3 | share/examples/nginx/conf/fastcgi_params | 4 | share/examples/nginx/conf/fastcgi_params | |
4 | share/examples/nginx/conf/koi-utf | 5 | share/examples/nginx/conf/koi-utf | |
5 | share/examples/nginx/conf/koi-win | 6 | share/examples/nginx/conf/koi-win | |
6 | share/examples/nginx/conf/mime.types | 7 | share/examples/nginx/conf/mime.types | |
7 | share/examples/nginx/conf/nginx.conf | 8 | share/examples/nginx/conf/nginx.conf | |
8 | share/examples/nginx/conf/win-utf | 9 | share/examples/nginx/conf/win-utf | |
9 | share/examples/nginx/html/50x.html | 10 | share/examples/nginx/html/50x.html | |
10 | share/examples/nginx/html/index.html | 11 | share/examples/nginx/html/index.html | |
11 | share/examples/rc.d/nginx | 12 | share/examples/rc.d/nginx |
@@ -1,6 +1,6 @@ | @@ -1,6 +1,6 @@ | |||
1 | $NetBSD: distinfo,v 1.3 2008/01/09 14:42:54 ghen Exp $ | 1 | $NetBSD: distinfo,v 1.4 2010/01/23 16:32:11 joerg Exp $ | |
2 | 2 | |||
3 | SHA1 (nginx-0.5.35.tar.gz) = 9e97e6723ee605db14d9cde54053496729f73c18 | 3 | SHA1 (nginx-0.8.32.tar.gz) = 03c8177ec4943a9f7c33dbd20b1ef5d8dd5a0f9b | |
4 | RMD160 (nginx-0.5.35.tar.gz) = b6f78c584ed430212428276c69e9748a962bc013 | 4 | RMD160 (nginx-0.8.32.tar.gz) = 4abacc587bf5fb400933d48bbbd7e92283de8683 | |
5 | Size (nginx-0.5.35.tar.gz) = 488926 bytes | 5 | Size (nginx-0.8.32.tar.gz) = 619865 bytes | |
6 | SHA1 (patch-aa) = ffc4de0134bd3d1808bdd1462e4602a11159d996 | 6 | SHA1 (patch-aa) = 1ef1a800f0d7dffe182b8a74f115105ded205f8e |
@@ -1,19 +1,49 @@ | @@ -1,19 +1,49 @@ | |||
1 | # $NetBSD: options.mk,v 1.1.1.1 2007/12/11 09:12:26 ghen Exp $ | 1 | # $NetBSD: options.mk,v 1.2 2010/01/23 16:32:11 joerg Exp $ | |
2 | 2 | |||
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.nginx | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.nginx | |
4 | PKG_SUPPORTED_OPTIONS= ssl pcre | 4 | PKG_SUPPORTED_OPTIONS= ssl pcre dav flv sub gtools mail-proxy memcache realip | |
5 | PKG_SUGGESTED_OPTIONS= ssl pcre | 5 | PKG_SUGGESTED_OPTIONS= ssl pcre | |
6 | 6 | |||
7 | .include "../../mk/bsd.options.mk" | 7 | .include "../../mk/bsd.options.mk" | |
8 | 8 | |||
9 | .if !empty(PKG_OPTIONS:Mssl) | 9 | .if !empty(PKG_OPTIONS:Mssl) | |
10 | .include "../../security/openssl/buildlink3.mk" | 10 | .include "../../security/openssl/buildlink3.mk" | |
11 | CONFIGURE_ARGS+= --with-mail_ssl_module | 11 | CONFIGURE_ARGS+= --with-mail_ssl_module | |
12 | CONFIGURE_ARGS+= --with-http_ssl_module | |||
12 | .endif | 13 | .endif | |
13 | 14 | |||
14 | .if !empty(PKG_OPTIONS:Mpcre) | 15 | .if !empty(PKG_OPTIONS:Mpcre) | |
15 | .include "../../devel/pcre/buildlink3.mk" | 16 | .include "../../devel/pcre/buildlink3.mk" | |
16 | .else | 17 | .else | |
17 | CONFIGURE_ARGS+= --without-pcre | 18 | CONFIGURE_ARGS+= --without-pcre | |
18 | CONFIGURE_ARGS+= --without-http_rewrite_module | 19 | CONFIGURE_ARGS+= --without-http_rewrite_module | |
19 | .endif | 20 | .endif | |
21 | ||||
22 | .if !empty(PKG_OPTIONS:Mdav) | |||
23 | CONFIGURE_ARGS+= --with-http_dav_module | |||
24 | .endif | |||
25 | ||||
26 | .if !empty(PKG_OPTIONS:Mflv) | |||
27 | CONFIGURE_ARGS+= --with-http_flv_module | |||
28 | .endif | |||
29 | ||||
30 | .if !empty(PKG_OPTIONS:Msub) | |||
31 | CONFIGURE_ARGS+= --with-http_sub_module | |||
32 | .endif | |||
33 | ||||
34 | .if !empty(PKG_OPTIONS:Mgtools) | |||
35 | CONFIGURE_ARGS+= --with-google_perftools_module | |||
36 | .endif | |||
37 | ||||
38 | .if !empty(PKG_OPTIONS:Mmail-proxy) | |||
39 | CONFIGURE_ARGS+= --with-mail | |||
40 | .endif | |||
41 | ||||
42 | .if empty(PKG_OPTIONS:Mmemcache) | |||
43 | CONFIGURE_ARGS+= --without-http_memcached_module | |||
44 | .endif | |||
45 | ||||
46 | .if !empty(PKG_OPTIONS:Mrealip) | |||
47 | CONFIGURE_ARGS+= --with-http_realip_module | |||
48 | .endif | |||
49 |
@@ -1,17 +1,19 @@ | @@ -1,17 +1,19 @@ | |||
1 | #!@RCD_SCRIPTS_SHELL@ | 1 | #!@RCD_SCRIPTS_SHELL@ | |
2 | # | 2 | # | |
3 | # $NetBSD: nginx.sh,v 1.1.1.1 2007/12/11 09:12:26 ghen Exp $ | 3 | # $NetBSD: nginx.sh,v 1.2 2010/01/23 16:32:11 joerg Exp $ | |
4 | # | 4 | # | |
5 | # PROVIDE: nginx | 5 | # PROVIDE: nginx | |
6 | # REQUIRE: DAEMON | 6 | # REQUIRE: DAEMON | |
7 | 7 | |||
8 | . /etc/rc.subr | 8 | . /etc/rc.subr | |
9 | 9 | |||
10 | name="nginx" | 10 | name="nginx" | |
11 | rcvar=${name} | 11 | rcvar=${name} | |
12 | command="@PREFIX@/sbin/${name}" | 12 | command="@PREFIX@/sbin/${name}" | |
13 | required_files="@PKG_SYSCONFDIR@/${name}.conf" | 13 | required_files="@PKG_SYSCONFDIR@/${name}.conf" | |
14 | pidfile="@VARBASE@/run/${name}.pid" | 14 | pidfile="@VARBASE@/run/${name}.pid" | |
15 | start_precmd="ulimit -n 2048" | |||
16 | extra_commands="reload" | |||
15 | 17 | |||
16 | load_rc_config $name | 18 | load_rc_config $name | |
17 | run_rc_command "$1" | 19 | run_rc_command "$1" |
@@ -1,86 +1,91 @@ | @@ -1,86 +1,91 @@ | |||
1 | $NetBSD: patch-aa,v 1.1.1.1 2007/12/11 09:12:26 ghen Exp $ | 1 | $NetBSD: patch-aa,v 1.2 2010/01/23 16:32:11 joerg Exp $ | |
2 | 2 | |||
3 | --- conf/nginx.conf.orig 2007-01-18 08:08:18.000000000 +0100 | 3 | This patch provides config file adapted to pkgsrc settings. | |
4 | --- conf/nginx.conf.orig 2008-02-28 22:44:16.000000000 +0200 | |||
4 | +++ conf/nginx.conf | 5 | +++ conf/nginx.conf | |
5 | @@ -2,11 +2,11 @@ | 6 | @@ -2,12 +2,13 @@ | |
6 | #user nobody; | 7 | -#user nobody; | |
8 | +user %%NGINX_USER%% %%NGINX_GROUP%%; | |||
7 | worker_processes 1; | 9 | worker_processes 1; | |
8 | 10 | |||
9 | -#error_log logs/error.log; | 11 | -#error_log logs/error.log; | |
10 | -#error_log logs/error.log notice; | 12 | -#error_log logs/error.log notice; | |
11 | -#error_log logs/error.log info; | 13 | -#error_log logs/error.log info; | |
12 | +#error_log %%NGINX_LOGDIR%%/error.log; | 14 | - | |
13 | +#error_log %%NGINX_LOGDIR%%/error.log notice; | |||
14 | +#error_log %%NGINX_LOGDIR%%/error.log info; | |||
15 | ||||
16 | -#pid logs/nginx.pid; | 15 | -#pid logs/nginx.pid; | |
17 | +#pid %%NGINX_LOGDIR%%/nginx.pid; | 16 | +#error_log %%NGINX_LOGDIR%%/error.log; | |
17 | +#error_log %%NGINX_LOGDIR%%/error.log notice; | |||
18 | +#error_log %%NGINX_LOGDIR%%/error.log info; | |||
18 | 19 | |||
20 | +#pid %%NGINX_PIDDIR%%/nginx.pid; | |||
19 | 21 | |||
20 | events { | 22 | events { | |
21 | @@ -15,14 +15,14 @@ events { | 23 | + # After increasing this value You probably should increase limit | |
24 | + # of file descriptors (for example in start_precmd in startup script) | |||
25 | worker_connections 1024; | |||
26 | @@ -15,14 +14,14 @@ | |||
22 | 27 | |||
23 | 28 | |||
24 | http { | 29 | http { | |
25 | - include conf/mime.types; | 30 | - include mime.types; | |
26 | + include %%PKG_SYSCONFDIR%%/mime.types; | 31 | + include %%PKG_SYSCONFDIR%%/mime.types; | |
27 | default_type application/octet-stream; | 32 | default_type application/octet-stream; | |
28 | 33 | |||
29 | #log_format main '$remote_addr - $remote_user [$time_local] $request ' | 34 | #log_format main '$remote_addr - $remote_user [$time_local] "$request" ' | |
30 | # '"$status" $body_bytes_sent "$http_referer" ' | 35 | # '$status $body_bytes_sent "$http_referer" ' | |
31 | # '"$http_user_agent" "$http_x_forwarded_for"'; | 36 | # '"$http_user_agent" "$http_x_forwarded_for"'; | |
32 | 37 | |||
33 | - #access_log logs/access.log main; | 38 | - #access_log logs/access.log main; | |
34 | + #access_log %%NGINX_LOGDIR%%/access.log main; | 39 | + #access_log %%NGINX_LOGDIR%%/access.log main; | |
35 | 40 | |||
36 | sendfile on; | 41 | sendfile on; | |
37 | #tcp_nopush on; | 42 | #tcp_nopush on; | |
38 | @@ -38,10 +38,10 @@ http { | 43 | @@ -38,10 +37,10 @@ | |
39 | 44 | |||
40 | #charset koi8-r; | 45 | #charset koi8-r; | |
41 | 46 | |||
42 | - #access_log logs/host.access.log main; | 47 | - #access_log logs/host.access.log main; | |
43 | + #access_log %%NGINX_LOGDIR%%/host.access.log main; | 48 | + #access_log %%NGINX_LOGDIR%%/host.access.log main; | |
44 | 49 | |||
45 | location / { | 50 | location / { | |
46 | - root html; | 51 | - root html; | |
47 | + root share/examples/nginx/html; | 52 | + root share/examples/nginx/html; | |
48 | index index.html index.htm; | 53 | index index.html index.htm; | |
49 | } | 54 | } | |
50 | 55 | |||
51 | @@ -51,7 +51,7 @@ http { | 56 | @@ -51,7 +50,7 @@ | |
52 | # | 57 | # | |
53 | error_page 500 502 503 504 /50x.html; | 58 | error_page 500 502 503 504 /50x.html; | |
54 | location = /50x.html { | 59 | location = /50x.html { | |
55 | - root html; | 60 | - root html; | |
56 | + root share/examples/nginx/html; | 61 | + root share/examples/nginx/html; | |
57 | } | 62 | } | |
58 | 63 | |||
59 | # proxy the PHP scripts to Apache listening on 127.0.0.1:80 | 64 | # proxy the PHP scripts to Apache listening on 127.0.0.1:80 | |
60 | @@ -66,7 +66,7 @@ http { | 65 | @@ -67,7 +66,7 @@ | |
61 | # fastcgi_pass 127.0.0.1:9000; | 66 | # fastcgi_pass 127.0.0.1:9000; | |
62 | # fastcgi_index index.php; | 67 | # fastcgi_index index.php; | |
63 | # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name; | 68 | # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name; | |
64 | - # include conf/fastcgi_params; | 69 | - # include fastcgi_params; | |
65 | + # include %%PKG_SYSCONFDIR%%/fastcgi_params; | 70 | + # include %%PKG_SYSCONFDIR%%/fastcgi_params; | |
66 | #} | 71 | #} | |
67 | 72 | |||
68 | # deny access to .htaccess files, if Apache's document root | 73 | # deny access to .htaccess files, if Apache's document root | |
69 | @@ -86,7 +86,7 @@ http { | 74 | @@ -87,7 +86,7 @@ | |
70 | # server_name somename alias another.alias; | 75 | # server_name somename alias another.alias; | |
71 | 76 | |||
72 | # location / { | 77 | # location / { | |
73 | - # root html; | 78 | - # root html; | |
74 | + # root share/examples/nginx/html; | 79 | + # root share/examples/nginx/html; | |
75 | # index index.html index.htm; | 80 | # index index.html index.htm; | |
76 | # } | 81 | # } | |
77 | #} | 82 | #} | |
78 | @@ -109,7 +109,7 @@ http { | 83 | @@ -110,7 +109,7 @@ | |
79 | # ssl_prefer_server_ciphers on; | 84 | # ssl_prefer_server_ciphers on; | |
80 | 85 | |||
81 | # location / { | 86 | # location / { | |
82 | - # root html; | 87 | - # root html; | |
83 | + # root share/examples/nginx/html; | 88 | + # root share/examples/nginx/html; | |
84 | # index index.html index.htm; | 89 | # index index.html index.htm; | |
85 | # } | 90 | # } | |
86 | #} | 91 | #} |