Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6720191
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:10:59+00:00 2026-05-26T09:10:59+00:00

I am developing some php script that works fine if I access it by

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T09:11:00+00:00Added an answer on May 26, 2026 at 9:11 am

    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.

    • http://en.wikipedia.org/wiki/HTTP_404

    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

    As a rule, it is impossible to host more than one SSL virtual host on the same IP address and port. This is because Apache needs to know the name of the host in order to choose the correct certificate to setup the encryption layer. But the name of the host being requested is contained only in the HTTP request headers, which are part of the encrypted content. It is therefore not available until after the encryption is already negotiated. This means that the correct certificate cannot be selected, and clients will receive certificate mismatch warnings and be vulnerable to man-in-the-middle attacks.

    In reality, Apache will allow you to configure name-based SSL virtual hosts, but it will always use the configuration from the first-listed virtual host (on the selected IP address and port) to setup the encryption layer. In certain specific circumstances, it is acceptable to use a single SSL configuration for several virtual hosts. In particular, this will work if the SSL certificate applies to all the virtual hosts.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing a PHP script that has to make some calls to a
This is a trick question, while developing a php+ajax application i felt into some
I've been developing with PHP for some years now, and recently came across this
I am developing a website using CodeIgniter and PHP. Some of my friends suggest
I am developing some client side Javascript that is using some JSON web services
I am developing some convenience wrappers around another software package that defines a bash
I am currently developing some user controls so that I can use them at
I'm developing some ajax script and using wordpress and my question is: is there
I am developing a script in PHP for uploading files to a MySQL database.
I am developing a module which has a jQuery script with some AJAX code.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.