MISP_BASEURL related setting problem

Created on 29 May 2019  路  3Comments  路  Source: MISP/MISP

I encountered a problem, guess may be related to MISP_BASEURL settings. The situation is divided into virtual machine internal access and host access.

virtual machine internal access

I downloaded the virtual machine: https://www.circl.lu/misp-images/latest/ , use Virtualbox 6.0

And installed the desktop environment.

After adding content to New Server, try editing it.
virtual machine internal access https://127.0.0.1/servers/index

List Sever->Actions->Edit

url jump to: https://localhost:8443/servers/edit/2

But, Browser shows:Unable to connect, I am trying to modify the url to: https://localhost/servers/edit/2

Working fine at this time.

host access

The situation is different when the host accesses the virtual machine.
host access https://192.168.56.1:8443/servers/index

List Sever->Actions->Edit

url jump to: https://localhost:8443/servers/edit/2
Browser also shows:Unable to connect, I am trying to modify the url to: https://192.168.56.1:8443/servers/edit/2

Working fine at this time.

In the port forwarding rule settings, I add in the host IP of each entry:192.168.56.1, Other settings have not been modified.

How can I change the settings to solve this problem?
Thanks.

support

Most helpful comment

I solved this problem. Saw this issue: https://github.com/MISP/MISP/issues/2983, this reminds me.

Trying to set:

sudo /var/www/MISP/app/Console/cake Baseurl ""
````
Of course, this is definitely not correct. It should not be set by root.

This operation can be performed successfully, but will result in:

Warning: app/Config/config.php is not writeable. This means that any setting changes made here will NOT be saved.

Therefore, the correct operation is to set it in the WebUI:

Server Settings & Maintenance -> MISP settings
`` The value ofMISP.baseurlis set to https://localhost:8443, I think this is the cause of the problem, modify the value ofMISP.baseurl` to null. Working fine at this time.

Thanks.

All 3 comments

I found that the MISP Virtual Machine has been updated and downloaded [email protected]. The port forwarding rules are the same as before, and the host IP is added to each entry:192.168.56.1.

But, I found host access: http://192.168.56.1:8443/ and use curl access in the virtual machine: 127.0.0.1, The page returns the result is Apache2 Ubuntu Default Page.

The [email protected] version still has this problem, I am looking forward to solving this problem.
Thanks.

I solved this problem. Saw this issue: https://github.com/MISP/MISP/issues/2983, this reminds me.

Trying to set:

sudo /var/www/MISP/app/Console/cake Baseurl ""
````
Of course, this is definitely not correct. It should not be set by root.

This operation can be performed successfully, but will result in:

Warning: app/Config/config.php is not writeable. This means that any setting changes made here will NOT be saved.

Therefore, the correct operation is to set it in the WebUI:

Server Settings & Maintenance -> MISP settings
`` The value ofMISP.baseurlis set to https://localhost:8443, I think this is the cause of the problem, modify the value ofMISP.baseurl` to null. Working fine at this time.

Thanks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

WakandaKing picture WakandaKing  路  5Comments

eCrimeLabs picture eCrimeLabs  路  4Comments

RichieB2B picture RichieB2B  路  7Comments

haegardev picture haegardev  路  3Comments

dspruell picture dspruell  路  4Comments