3 ms·
I would use it if I could do so with PHP's internal webserver. I often hack together quick experiments using PHP's internal webserver. It only serves via http
by TekMol 8y ago
I would use it if I could do so with PHP's internal webserver.
I often hack together quick experiments using PHP's internal webserver. It only serves via http though, not https. Is there a way to make it serve over https?
- krab 8y agoThere is a neat tool ncat that can work as a SSL server. If you run php on port 8080 like this: $ php -S localhost:8080 Then, you can proxy with combination of ncat server and client: $ sudo ncat --listen --ssl localhost 443 -k --sh-exec "ncat localhost 8080" You can also point ncat to your SSL certificate.
- TekMol 8y agoWow, this is cool! I just tried it and it works nicely. Thank you so much!