PDA

View Full Version : Trouble with CGI and secure server



lowtechman
12-29-2007, 11:02 PM
Hello, I need some help. I have a simple CGI script on my website that takes input from a form and mails it to me once submitted. It works flawlessly when the site is in http. I am trying to submit the form using the shared SSL server, the webpage goes into https just fine, but then I get an error when trying to submit the form: "Sorry....Cant run from here!" Does anyone know how to get around this?

Thanks

lowtechman
12-29-2007, 11:19 PM
Sorry, I actually ended up figuring it out for myself. Here is what I did, in case anyone else has the same problem in the future.

In the cgi script there is a line that lists the domains that are allowed to call on the script. It looks like this:

@okaydomains=("http://mydomain.com");

I simply added the domain for the shared secure server, and it worked.

@okaydomains=("http://mydomain.com", "https://secure.hostmonster.com");

Hope this helps someone in the future.