Access virtualhost always redirect to https, dashboard

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

Access virtualhost always redirect to https, dashboard

Postby silentIm » 09. April 2020 05:35

I set up virtualhost site for my development machine, moving from my macbook pro to new Windows machine. The problem is Apache always redirects to https, even if I disable httpd-ssl.conf in httpd.conf. If I enable httpd-ssl.conf, it redirects to xampp /dashboard (with SSL error because it still uses default certificate).

I have searched google for all possible solutions but Apache still redirect to /dashboard. Please help me, I am stumped.

my hosts file
Code: Select all
127.0.0.1       artha.test www.artha.test


httpd-vhosts.conf
Code: Select all
<VirtualHost *:80>
    ServerAdmin firmanazis@gmail.com
    DocumentRoot "C:/xampp/htdocs"
    ServerName localhost
    LogLevel debug
    ErrorLog "logs/localhost-error.log"
    CustomLog "logs/localhost-access.log" common   
</VirtualHost>

<Directory "C:\xampp\xampp-sites\artha">
   Options Indexes FollowSymLinks
   AllowOverride All
   Require all granted
</Directory>
<VirtualHost *:80>
    ServerAdmin firmanazis@gmail.com
    DocumentRoot "C:\xampp\xampp-sites\artha"
    ServerName artha.test
    ServerAlias www.artha.test
    LogLevel debug
    ErrorLog "logs/artha.test-error.log"
    CustomLog "logs/artha.test-access.log" common
</VirtualHost>
silentIm
 
Posts: 2
Joined: 02. July 2015 11:40
XAMPP version: 7.4.1
Operating System: Windows 10 Home 10.0.18363

Re: Access virtualhost always redirect to https, dashboard

Postby Altrea » 09. April 2020 06:58

XAMPP comes with a index.php file in the htdocs directory which fires the redirect.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11941
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Access virtualhost always redirect to https, dashboard

Postby silentIm » 09. April 2020 09:34

Okay, my mistake. I forget in my app contains .hataccess that rewrite http to https. It works now.

Also I just notice that httpd.conf file path should use slash (/) sign for directory separator, even on Windows.
silentIm
 
Posts: 2
Joined: 02. July 2015 11:40
XAMPP version: 7.4.1
Operating System: Windows 10 Home 10.0.18363


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 94 guests