I am developing some php script that works fine if I access it by http. But while I try to access it via https prefix server returns 404 Error. What I am doing wrong here?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Depending on the webserver, the
error_log(nginx/apache/apache2) directive and where it is logging errors to, will help you understand where the problem is happening. 404 indicates that the file does not exist or the permissions are not set properly for the webserver to serve it. As it’s only happening with HTTPS, chances are as hakre suggested, your HTTPS server may not be using the same document root as HTTP.Posting information about the type of webserver, what, if anything, shows in the error logs, will help everyone at stackoverflow.com understand better your problem, and propose an appropriate answer.
Name based virtual hosting will not function properly with HTTPS. You can have 1 virtual host for 1 IP address with HTTPS: http://wiki.apache.org/httpd/NameBasedSSLVHosts