mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-17 01:06:08 +03:00
help notes
This commit is contained in:
parent
6fd069ad69
commit
1a57192ff7
@ -77,7 +77,7 @@
|
|||||||
<br />
|
<br />
|
||||||
<h3>Compile ModSecurity native library</h3>
|
<h3>Compile ModSecurity native library</h3>
|
||||||
<p>
|
<p>
|
||||||
Install required packages for compilation. For example, on Debian/Ubuntu like systems (Windows users have a Visual Studio solution):
|
Install required packages for compilation. For example, on Debian/Ubuntu like systems:
|
||||||
</p>
|
</p>
|
||||||
<pre class="codecanvas">
|
<pre class="codecanvas">
|
||||||
sudo apt-get install g++ make automake autoconf libtool
|
sudo apt-get install g++ make automake autoconf libtool
|
||||||
@ -145,9 +145,9 @@ sudo cp ./java/.libs/libModSecurityJNI.so /usr/lib/
|
|||||||
<li>
|
<li>
|
||||||
<h4>Loading native libraries directly in the ModSecurityFilter</h4>
|
<h4>Loading native libraries directly in the ModSecurityFilter</h4>
|
||||||
<p>
|
<p>
|
||||||
Although this is the easier, this is not recommended because the JVM will raise
|
Although this is easier, it is not recommended because the JVM will raise
|
||||||
<span class="code">UnsatisfiedLinkError</span> if the ModSecurity Filter is used in
|
<span class="code">UnsatisfiedLinkError</span> if the ModSecurity Filter is used in
|
||||||
multiple applications within the same server.
|
multiple applications within the same server or the application is redeployed while the server is running.
|
||||||
The libraries are loaded in the <a class="code" href="../src/java/org/modsecurity/ModSecurity.java">ModSecurity</a> class using
|
The libraries are loaded in the <a class="code" href="../src/java/org/modsecurity/ModSecurity.java">ModSecurity</a> class using
|
||||||
<span class="code">System.loadLibrary()</span>. In this case the server has to be started with
|
<span class="code">System.loadLibrary()</span>. In this case the server has to be started with
|
||||||
the following VM options:
|
the following VM options:
|
||||||
@ -157,7 +157,8 @@ sudo cp ./java/.libs/libModSecurityJNI.so /usr/lib/
|
|||||||
</pre>
|
</pre>
|
||||||
<p>
|
<p>
|
||||||
You can specify multiple folders for the <span class="code">java.library.path</span> variable by using
|
You can specify multiple folders for the <span class="code">java.library.path</span> variable by using
|
||||||
: (colon) or ; (semi-colon), depending on your environment.
|
: (colon) or ; (semi-colon), depending on your environment. Also, the libraries can be loaded using
|
||||||
|
their absolute path using <span class="code">System.load()</span>.
|
||||||
</p>
|
</p>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user