Apache Settings on Debian (Raspbian)

I have a need to get both HTTPS and run cgi-bin on an apache server on my raspberry pi. I can get one or the other going but I can't seem to get both going at the same time.

I also wish to change the default root folder to the one on my external drive.

I would share my settings BUT I decided on starting with a fresh apache install :/

Is there a page that can show examples for running both or can a web admin throw me some pointers in making a reasonably secure webpage? :)

Thanks in advance.

Maybe you should read up on it: https://httpd.apache.org/docs/