Omitting .php does not work with https
Posted by: Filip (---.access.telenet.be)
Date: July 12, 2024 02:36PM

I have updated apache2.4.46 to apache2.4.61.
During this process something went wrong, which caused me to copy/merge the configuration files from the previous version to the new one.
However, when using https to access a php script on the root folder, I must specify the whole script name, being status.php, simply using status does not work. When accessing the page with http, this seem to work.

I search the internet and checked the settings over and over again, but I do not have any clue where it could go wrong.

I even added an .htaccess file to convert status to status.php but also without no luck.

php 8.3.9 is working fine.

My configuration files:

NO ! I wouldn't look at the hundreds of lines in the configuration files!!!!



Edited 1 time(s). Last edit at 07/12/2024 04:18PM by Otomatic.

Options: ReplyQuote
Re: Omitting .php does not work with https
Posted by: Otomatic (Moderator)
Date: July 12, 2024 04:32PM

No, you haven't "updated" Apache but you've degraded it by replacing 2.4.61 with 2.4.46.

Automatic HTTPS support for Wampserver started with Wampserver 3.3.2, i.e. with Apache 2.4.58, and it's not certain that it works with Apache 2.4.46.

> something went wrong, which caused me to copy/merge the configuration
> files from the previous version to the new one.
It is clearly explained that all you have to do is press Enter to copy nothing!

Go back to Apache 2.4.61 without copying anything, then delete Apache 2.4.46 (Right-click -> Delete unused versions), quit Wampserver and reinstall Apache 2.4.46.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Omitting .php does not work with https
Posted by: Otomatic (Moderator)
Date: July 12, 2024 04:47PM

I've just carried out a full-scale test of switching from Apache 2.4.61 to Apache 2.4.46d in two ways:
- Without copying the configuration (press Enter), then comparing the Apache configurations, and my seven local sites are working just fine in HTTPS mode.
- By copying the configurations (A key, then Enter, G key, then Enter) and my seven local sites work just fine in HTTPS.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons



Edited 1 time(s). Last edit at 07/12/2024 05:43PM by Otomatic.

Options: ReplyQuote
Re: Omitting .php does not work with https
Posted by: Filip (---.access.telenet.be)
Date: July 12, 2024 05:19PM

ok, thank you, I will perform the procedure.
And indeed, I knew that I messed up, but to not ask me how and where.

Will perform the actions you propose.

Thanks for deleting the logs, I was not sure how to proceed here.

Options: ReplyQuote


Sorry, only registered users may post in this forum.