qmailadmin + lsws 2.1.9

I`m trying to solve the problem of running qmailadmin.
I have a virtual host(port 443) with a context for /cgi-bin/qmailadmin.
Here is the first problem: If i try https://mydomain/cgi-bin/qmailadmin the browser tries to download the file but if i renamed the qmailadmin binary to qmailadmin.cgi then it works.

The more serious problem is that when i enter my username and password i get: Error 405,This type request is not allowed!