csf Webmin module submits to bad path (404)
Posted: 01 Jul 2013, 16:55
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:
to:
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";
Code: Select all
$script = "index.cgi";
$images = "csfimages";