All of a sudden forcing to https redirect on local vhost

Problems with the Windows version of XAMPP, questions, comments, and anything related.

All of a sudden forcing to https redirect on local vhost

Postby anjanesh » 22. September 2023 05:12

I've been using XAMP 3.3.0 since the last 6 months on my work machine which is on Windows 11.

In my D:\xampp\apache\conf\extra\httpd-vhosts.conf I have

Code: Select all
<VirtualHost *:3520>
    ##ServerAdmin webmaster@dummy-host.example.com
    DocumentRoot "D:/htdocs/project"
    <Directory "D:/htdocs/project">
        Allow from all
        Require all granted
        Options Indexes FollowSymLinks Includes ExecCGI
        AllowOverride All
        <FilesMatch "\.php$">
            SetHandler application/x-httpd-php74-cgi
        </FilesMatch>
    </Directory>   
    ServerName local.project.mydomain.com
    ErrorLog "logs/project-error.log"
    CustomLog "logs/project-error-access.log" common
</VirtualHost>


I added the entry in my hosts file and for the last 6 months local.project.mydomain.com:3520 was working like a charm.
No changes were made to any config since then.
But since yesterday onwards it wasn't loading.
http://localhost:3520 loads but local.project.mydomain.com:3520 says

Code: Select all
This site can’t provide a secure connection
local.project.mydomain.com sent an invalid response.


Code: Select all
$ curl --head http://local.project.mydomain.com:3520
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0HTTP/1.1 200 OK
Date: Fri, 22 Sep 2023 04:09:57 GMT
Server: Apache/2.4.54 (Win64) OpenSSL/1.1.1p mod_fcgid/2.3.10-dev
X-Powered-By: PHP/7.2.34
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
Set-Cookie: ci_session=l9rjhihhrii2mknhk4h03su30p18keuc; expires=Fri, 22-Sep-2023 06:09:57 GMT; Max-Age=7200; path=/; HttpOnly
Content-Type: text/html; charset=UTF-8


For some reason local.project.mydomain.com:3520 is forcing itself to redirect to https ?
anjanesh
 
Posts: 3
Joined: 22. September 2023 05:00
XAMPP version: 3.3.0
Operating System: Windows 11

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 191 guests