pwnlandia / mhn

Modern Honey Network
GNU Lesser General Public License v2.1
2.42k stars 631 forks source link

Changing Dashboard port #870

Closed DreamRuthenium closed 5 months ago

DreamRuthenium commented 5 months ago

I tried to use port 8080 instead of 80, so I modified "install_mhnserver.sh" To be specific, I changed the port at this part from 80 to 8080:

cat > $NGINXCONFIG <<EOF
server {
    listen       80;
    server_name  _;

    location / { 
        try_files \$uri @mhnserver; 
    }

    root /opt/www;

    location @mhnserver {
      include uwsgi_params;
      uwsgi_pass unix:/tmp/uwsgi.sock;
    }

    location  /static {
      alias $MHN_HOME/server/mhn/static;
    }
}
EOF

Is this right? the 8080 port seems not working, I wonder if I'v done something wrong.

DreamRuthenium commented 5 months ago

Problem was solved. This way to change Port is correct. The problem I faced was caused by stupid iptables.