Search code examples
phpsslamazon-ec2cloud9-ide

Why does AWS Cloud9 IDE give an "Unsupported SSL" error when accessing the built-in PHP server on port 8080?


(1) Spun up a brand new Cloud9 IDE (2) Checked out my code, set up config. (3) Ran index.php with the built-in runner "PHP (built-in web server)"

Runner output indicates the following:

Starting PHP built-in web server, serving https://XX.XX.XX.XX/. PHP 5.6.32 Development Server started at Tue Jan 23 17:38:57 2018 Listening on http://0.0.0.0:8080 Document root is /home/ec2-user/environment Press Ctrl-C to quit.

However, attempting to access https://XX.XX.XX.XX:8080/ in a new tab produces the following error indication in the runner log:

Invalid request (Unsupported SSL request)

In my EC2 control, I added TCP ports 8080-8082 to the inbound rules list for 0.0.0.0, /0

Oddly, this seems to be new behavior; previously I've been able to bring up the application in a web browser tab with no trouble. Has anyone else run into and resolved this issue?


Solution

  • And the solution turned out to be super simple: Don't use SSL in the web browser. Accessing it at http://XX.XX.XX.XX:8080/ solved the problem.