csf Webmin module submits to bad path (404)

This forum is only for reproducible bugs with csf and lfd (i.e. not iptables problems, lack of understanding how to use a feature, etc). Posts must be accompanied with full technical details of the problem and how it can be recreated. Any posts not adhering to this, or not considered bugs, will be moved to the General Discussion (csf) forum.
Post Reply
kohenkatz
Junior Member
Posts: 1
Joined: 01 Jul 2013, 02:34

csf Webmin module submits to bad path (404)

Post by kohenkatz »

I set up CSF on a server today and installed the Webmin module. Webmin on my server is served through Apache's mod_proxy at "https://servername/admin/webmin/". The CSF Webmin module does not work in this case because its forms submit to '/csf/index.cgi' - which here means "https://servername/csf/index.cgi" which is not correct.

The fix for this bug is simple. instead of an absolute path, csf should do what most other Webmin modules do and use the relative path to itself (just "index.cgi") for submissions. The same is true for the csfimages path.

I have confirmed that the following change makes the Webmin module work properly inside a subdomain while still working properly in a regular case:

In [font=monospaced]/usr/local/csf/lib/webmin/csf/index.cgi[/font]:

Change:

Code: Select all

$script = "/csf/index.cgi";
$images = "/csf/csfimages";
to:

Code: Select all

$script = "index.cgi";
$images = "csfimages";
ForumAdmin
Moderator
Posts: 1524
Joined: 01 Oct 2008, 09:24

Re: csf Webmin module submits to bad path (404)

Post by ForumAdmin »

Thank you for reporting that. We'll look at including that in the next release.
ForumAdmin
Moderator
Posts: 1524
Joined: 01 Oct 2008, 09:24

Re: csf Webmin module submits to bad path (404)

Post by ForumAdmin »

This should now be fixed in csf v6.21:
http://blog.configserver.com/?p=1840
Post Reply