Issue with using https protocol



because c9 creates the web page with the https protocol, any src=“file” references have to be https as well and i’m having trouble getting this to work on code from a web site that was previously served thru http… i’m now getting “connection refused”

Any idea what i’m doing wrong?


You don’t have to use the direct urls. just make them absolute to the domain.

For example, you have this: in your code, just specify the source as /images/apic.jpg. That way everything is portable and you won’t have any issues.



Another thing to note here is that https is only enforced with the Cloud9 Preview. If you visit your application URL using a separate tab, you can use ‘http’ instead of https.

I hope this helps.



thanks! didn’t know that…very helpful