Redirection problem to http://mydomaine.com/cgi-sys/defaultwebpage.cgi
Hello everyone.
I am new to cpanel. But I never had any problem until now.
When you want to access my site, it redirects to the page
Before posting this problem, I tried a lot of solutions, but so far nothing works for me
1- I had first to modify the file [CODE=bash] /usr/local/cpanel/htdocs/index.html
: [CODE=html]
And replace with : [CODE=html]
But, nothing. This solution didn't work: it affected the browser in an infinite loop. 2- afterwards, in [CODE=bash] /etc/apache2/conf/httpd.conf
, I added a VirtualHost [CODE=html] ServerName my_domaine.com ServerAlias www.my_domaine.com DocumentRoot /home/User_name/public_html .
But nothing, not solved the problem. So I deleted it, not to put the shit in this file unnecessarily. 3 - Empty the cache of my browser or of the secondary machine with which I do my tests. Nothing to do, it always redirects to page. All seemed to be good, until this morning when my friend told me that he was redirected to the /cgi-sys/defaultwebpage.cgi page again. I haven't changed anything since last night. So I'm a bit confused, and I don't know what to do anymore. Because when I search for the solution to this problem in Google. It's always the same answers that come back, and I've already tried them all. *NOTE 1: I can connect to my site from my machine without any problem. But when the others connect, it redirects them to KPROXY - Free Anonymous Web Proxy - Anonymous Proxy for example, it goes through without problem. *NOTE 3: When I check my DNS records on AddHandler application/x-httpd-ea-php74 .php .php7 .phtml # php -- END cPanel-generated handler, do not edit
: [CODE=html]
And replace with : [CODE=html]
But, nothing. This solution didn't work: it affected the browser in an infinite loop. 2- afterwards, in [CODE=bash] /etc/apache2/conf/httpd.conf
, I added a VirtualHost [CODE=html] ServerName my_domaine.com ServerAlias www.my_domaine.com DocumentRoot /home/User_name/public_html .
But nothing, not solved the problem. So I deleted it, not to put the shit in this file unnecessarily. 3 - Empty the cache of my browser or of the secondary machine with which I do my tests. Nothing to do, it always redirects to page. All seemed to be good, until this morning when my friend told me that he was redirected to the /cgi-sys/defaultwebpage.cgi page again. I haven't changed anything since last night. So I'm a bit confused, and I don't know what to do anymore. Because when I search for the solution to this problem in Google. It's always the same answers that come back, and I've already tried them all. *NOTE 1: I can connect to my site from my machine without any problem. But when the others connect, it redirects them to KPROXY - Free Anonymous Web Proxy - Anonymous Proxy for example, it goes through without problem. *NOTE 3: When I check my DNS records on AddHandler application/x-httpd-ea-php74 .php .php7 .phtml # php -- END cPanel-generated handler, do not edit
-
Hey there! You definitely don't want to edit the /usr/local/cpanel/htdocs/index.html file or the Apache configuration directly as that will likely just lead to other issues. It sounds like you were on the right track with the DNS change. This issue is almost always caused by a mismatch between the DNS record for the domain and the IP address the domain is configured to use in Apache. What you are seeing at this time is likely DNS propagation, especially if you don't see anything odd from IntoDNS. Since it has been almost 24 hours since you posted this, are you still seeing problems with the site? 0 -
Hey there! You definitely don't want to edit the /usr/local/cpanel/htdocs/index.html file or the Apache configuration directly as that will likely just lead to other issues. It sounds like you were on the right track with the DNS change. This issue is almost always caused by a mismatch between the DNS record for the domain and the IP address the domain is configured to use in Apache. What you are seeing at this time is likely DNS propagation, especially if you don't see anything odd from IntoDNS. Since it has been almost 24 hours since you posted this, are you still seeing problems with the site?
Hi Jurassic Moderator Yes, it was a DNS problem. But not directly to the registrations. The problem was related to IPv6. My domain mydomai.com resolves to an IPv6 and IPv4 address, but had not been configured with IPv6 on my server (only with IPv4). As a result, visiting computers with IPv6 available were not able to load the correct site. That's why the page was redirecting to the default website page from some locations, but other locations were loading the site without problems without redirection. To correct the problem I had to add the IPv6 address of my server (provided by my host. Or you can also get it with the command [CODE=bash]$ dig AAAA mydomain.com +short
) to my server via WHM -> IPv6 Ranges. I then assigned this range to the main account via WHM -> Assign IPv6 Address. My site now loads from every location, if IPv6 is available on the visiting machine or not. Thank you. Problem solved :cool: Ps: credit to cpanel technical support, who provided me with the solution and at the same time the explanation to this problem :);)0 -
I'm glad things are working well now! 0
Please sign in to leave a comment.
Comments
3 comments