Changes for page Setting up NginX

Last modified by Manuel Leduc on 2024/02/14

<
From version < 4.2 >
edited by weec
on 2014/07/10
To version < 5.1 >
edited by Vincent Massol
on 2016/04/25
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.weec
1 +XWiki.VincentMassol
Content
... ... @@ -1,15 +1,17 @@
1 1  {{warning}}
2 -* This configuration is highly experimental and using it may be risky
2 +* This configuration has been contributed by an XWiki user and needs to be verified.
3 3  * You likely won't need NginX if you have just a couple of hundred users browsing your wiki
4 4  {{/warning}}
5 5  
6 -I'm running XWiki Enterprise on the Glassfish 2 Application Server.
7 -NginX listens on //vostrets.ru:80// and redirects HTTP queries to //vostrets.ru:8080// and thus NginX is referred to as "frontend" and Glassfish as "backend".
8 -Glassfish is installed in the ///user/local/glassfish/glassfish// folder.
6 += Set up =
9 9  
8 +Example running XWiki on the Glassfish 2 Application Server:
9 +* NginX listens on ##<domain>:80## and redirects HTTP queries to ##<domain>:8080## and thus NginX is referred to as "frontend" and Glassfish as "backend".
10 +* Glassfish is installed in the ##/user/local/glassfish/glassfish## folder.
11 +
10 10  For more information you can consult the [[NginX manual>>http://wiki.nginx.org/Main]].
11 11  
12 -I've configured my NginX as follows (**///etc/nginx.conf//**):
14 +NginX configuration example with ##<domain>## being ##vostrets.ru## (##/etc/nginx.conf##):
13 13  
14 14  {{code}}
15 15  user www-data;
... ... @@ -100,3 +100,9 @@
100 100   }
101 101  }
102 102  {{/code}}
105 +
106 += Troubleshooting =
107 +
108 +== Request Entity Too Large ==
109 +
110 +If you find the following message in your logs: {{code}}Failed to load resource: the server responded with a status of 413 (Request Entity Too Large){{/code}} then you might want to try to [[increase the request body size>>http://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size]] since it seems nginx does not allow request bodies larger than 1MB by default.
XWiki.XWikiComments[0]
Date
... ... @@ -1,1 +1,1 @@
1 -2014-07-10 10:50:10.521
1 +2014-07-10 10:50:10.0

Get Connected