HTTP redirect to page /cgi-sys/defaultwebpage.cgi

Operating System & Version
Centos 7
cPanel & WHM Version
92.0.6

Userr020

Member
Oct 8, 2020
6
0
1
Finland
cPanel Access Level
Root Administrator
I have installed centos 7 and cpanel to server. If I change port 80 (Home »Server Configuration »Tweak Settings »System: Apache non-SSL IP/port) to 8080 and restart httpd, after that http address redirect always to cpanel default page http://domain.com/cgi-sys/defaultwebpage.cgi ? HTTPS works without issues so it goes https://domain.com/.

How fix this redirect problem for http if port is 8080? Port 8080 is for Varnish Cache software.

Code:
<VirtualHost ip_address:8080>
  ServerName domain.com
    <IfModule rewrite_module>
    RewriteEngine On
    RewriteCond %{REQUEST_URI} ^/\.well-known/(pki-validation|cpanel-dcv)/
    RewriteRule ^ - [END]

    RewriteCond %{HTTPS} !=on
    RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
  </IfModule>
    ServerAlias mail.domain.com www.domain.com
  DocumentRoot /home/user/public_html
  ServerAdmin [email protected]
  UseCanonicalName Off
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
6,810
895
313
cPanel Access Level
Root Administrator
Hey there! Since Varnish isn't something we support, I'm not going to have much helpful information to add on my end. I can tell you that the default page happens when there is a disconnect between the request being received from a browser and Apache, and is most commonly an IP mis-match issue, where the domain either doesn't exist or is configured on a different IP in Apache than in DNS.

Another user may have more ideas on the Varnish aspect of things though!