HTTP redirect to page /cgi-sys/defaultwebpage.cgi
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/.
How fix this redirect problem for http if port is 8080? Port 8080 is for Varnish Cache software.
ServerName domain.com
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]
ServerAlias mail.domain.com www.domain.com
DocumentRoot /home/user/public_html
ServerAdmin webmaster@domain.com
UseCanonicalName Off-
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! 0 -
Something "httpd.conf" configuration for http://domain.com/ (https) ? 0
Please sign in to leave a comment.
Comments
3 comments