开源框架XWIKI搭建介绍
原文地址:http://john88wang.blog.51cto.com/2165294/1605787
1
2
3
4
5
6
7
|
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443"
URIEncoding="UTF-8"
compression="on"
compressionMinSize="2048"
compressableMimeType="text/html,text/xml,text/css,text/javascript,application/x-javascript"/>
|
1
2
|
JAVA_HOME="/usr/lib/jvm/java-1.7.0-openjdk.x86_64/"
JAVA_OPTS="-Xmx300m -XX:MaxPermSize=196m"
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
server {
listen 80;
server_name xwiki.xxx.xxx;
root /data/app_platform/xwiki_tomcat/webapps/xwiki/;
location / {
rewrite ^ $scheme://$server_name/xwiki$request_uri? permanent;
}
location ^~ /xwiki {
# If path starts with /xwiki - then redirect to backend: XWiki application in Tomcat
proxy_pass http://localhost:8080/xwiki;
}
}
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
<!-- MySQL configuration.
Uncomment if you want to use MySQL and comment out other database configurations.
-->
<property name="connection.url">jdbc:mysql://localhost/xwiki</property>
<property name="connection.username">xwiki</property>
<property name="connection.password">xwiki</property>
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="dialect">org.hibernate.dialect.MySQL5InnoDBDialect</property>
<property name="dbcp.ps.maxActive">20</property>
<mapping resource="xwiki.hbm.xml"/>
<mapping resource="feeds.hbm.xml"/>
<mapping resource="activitystream.hbm.xml"/>
<mapping resource="instance.hbm.xml"/>
|
1
2
|
openoffice.autoStart=true
openoffice.homePath=/usr/lib64/libreoffice/
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<filter>
<filter-name>Set Character Encoding</filter-name>
<filter-class>org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter</filter-class>
<!-- The encoding to use. This must be the same as the one in xwiki.cfg (hopefully only one
encoding will be used later). -->
<init-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
<!-- Whether to ignore and override the encoding specified by the client, when this actually
happens. For example, AJAX requests made through XmlHttpRequests specify UTF-8. When this
is set to false, the custom encoding is used only when there wasn't any encoding specified
by the client. -->
<init-param>
<param-name>ignore</param-name>
<param-value>false</param-value>
</init-param>
</filter>
|
1
2
3
|
#-# The encoding to use when transformin strings to and from byte arrays. This causes the jvm encoding to be ignored,
#-# since we want to be independend of the underlying system.
xwiki.encoding=UTF-8
|
1
2
|
<property name="connection.useUnicode">true</property>
<property name="connection.characterEncoding">UTF-8</property>
|
1
2
3
4
5
6
|
[client]
default-character-set=utf8
[mysqld]
default-character-set=utf8
character-set-server=utf8
collation-server=utf8_bin
|
1
2
3
4
5
|
#-# Note if the system property xwiki.data.dir is set then this property is not used.
#-# If neither the system property nor this configuration value here are set then the Servlet container's temporary
#-# directory is used; This is absolutely not recommended since that directory could be wiped out at any time and you
#-# should specify a value.
environment.permanentDirectory=/data/xwiki/
|
1
2
3
|
xwiki.store.attachment.hint=file
xwiki.store.attachment.versioning.hint=file
xwiki.store.attachment.recyclebin.hint=file
|