K
K
kayaba2016-06-16 10:28:25
Python
kayaba, 2016-06-16 10:28:25

How to fix Not Found error on nginx server?

On Ubuntu 14.04, in the light of the necessary task, I installed Modern Honey Network
https://threatstream.github.io/mhn/ - what it is
instructions for installing it
https://github.com/threatstream/mhn
Also on VmWare installed another machine with the same OS and installed the Honeypot directly on it, obtained from the script in mhn (it's just by the way, in order what I did)
In general, I did everything as indicated in the manual, but my main goal was to create a module for this mhn server. Since mhn is written in python and was installed by default with ninx, there were some difficulties with the "module" solution.
To create a module, it was necessary to add a link to my own page in one of the server pages.
d9d9dfe55a034405b670899d33b94a83.png
Then the problems started, namely, when clicking on the link, to a manually added page, it showed an error like this
cd7b52eafbec45f7998fe0d4876ec07b.png
one.
(the essence of the problem)
But the need for the server to open exactly my page or load data during deserialization (to the page I added again (let serialize.html for example) ) still remains
so, I’m sitting and I don’t even know where to look for the error, please tell me!
(maybe it's either a problem with nginx's configuration settings, or with something in the Python code ...)
for example: I
insert this code into the html page {% print "hello" %} everything works,
but when I start adding some of my own files
{% f= open('test.txt', 'r') %}
{% print f %}
throws an error (in this case I get an Internal Server Error)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2016-06-16
@hamnsk

Permissions for files, settings for everything in the stack you need to dig and see ...
does nginx give anything from another folder, any other arbitrary scripts ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question