Closed GoogleCodeExporter closed 8 years ago
Hi,
Can you provide your nginx + naxsi configuration ?
Original comment by sephirot...@gmail.com
on 28 Nov 2012 at 8:18
here ares all my configuration
Original comment by dim...@gmail.com
on 28 Nov 2012 at 11:50
Attachments:
nx_intercept is listening on port 8082, and you do a proxy pass to port 8080 in
your RequestDenied location.
Change the port to 8082, and it should work.
Original comment by sephirot...@gmail.com
on 29 Nov 2012 at 9:16
Ok thank you it works. and how can I perform the learning mode?
Original comment by dim...@gmail.com
on 29 Nov 2012 at 11:53
You will find every informations you need in the wiki
(https://code.google.com/p/naxsi/wiki/TableOfContents).
Original comment by sephirot...@gmail.com
on 29 Nov 2012 at 1:39
i have already read this but i do not see how to add rules to naxsi?
Original comment by dim...@gmail.com
on 29 Nov 2012 at 1:53
We met same problem.
Our environment :
ubuntu 12.04 LTS by using the following ppa :
http://ppa.launchpad.net/nginx/stable/ubuntu precise main
So we use :
nginx version: nginx/1.2.4
We noticed a problem by using Mysql 5.5 (ubuntu precise official package) and
naxsi scripts. When we ran the scripts, no row was added on mysql database.
We modified the following script :
/usr/share/nginx-naxsi/naxsi-ui/SQLWrapper.py
by changing method => :
def StartInsert(self):
if self.dbtype == 'sqlite':
self.__conn.execute("BEGIN")
if self.dbtype == 'mysql':
self.__cursor.execute("BEGIN;")
def StopInsert(self):
if self.dbtype == 'sqlite':
self.__conn.commit()
if self.dbtype == 'mysql':
self.__cursor.execute("COMMIT;")
I don't know if it's the best things to do but it works now.
Original comment by julien.l...@gmail.com
on 30 Nov 2012 at 3:51
Original issue reported on code.google.com by
dim...@gmail.com
on 28 Nov 2012 at 8:11Attachments: