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 http://mydomaine.com/cgi-sys/defaultwebpage.cgi
###### Situation #####
- I reinstalled my site two weeks ago.
- I use magneto 2.4.2 .
- I installed magento with 'softaculous App installer', without any problem.
- When I want to access my site with my machine, I have no problem, I normally access the site from my machine. Even from a virtual machine installed on my physical machine, I can access my site.
###### Problem : ######
My site is only accessible from my machine. When another person wants to connect to my site, he is redirected to the page http://mydomaine.com/cgi-sys/defaultwebpage.cgi
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
:
And replace with :
But, nothing. This solution didn't work: it affected the browser in an infinite loop.
2- afterwards, in
, I added a VirtualHost
But nothing, not solved the problem. So I deleted it, not to put the **** 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 http://mydomaine.com/cgi-sys/defaultwebpage.cgi
4- and finally the solution that worked partially.
I read somewhere that this was due to the DNS record. That it was necessary to have clean DNS records.
OK, in fact I had only two errors in my DNS records (at the MX level), but my site was working without any problem with Magento 2.3. so it never bothered me.
But it's not a problem, last night I corrected these MX record errors in my DNS.
Waited for a few moments for it to propagate and a few hours later a friend of mine tried to connect to my site and everything was working fine, he was no longer redirected to the http://mydomaine.com/cgi-sys/defaultwebpage.cgi 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 http://mydomaine.com/cgi-sys/defaultwebpage.cgi .
*NOTE 2:
People can access my site through a proxy.
When they type My_domain.com on KPROXY - Free Anonymous Web Proxy - Anonymous Proxy for example, it goes through without problem.
*NOTE 3:
When I check my DNS records on intoDNS: checks DNS and mail servers health . it doesn't detect any error . all is OK
######## USEFUL INFORMATION ########
* WHM /Cpanel = version 96.0.11
* magennto 2.4.2-p1
**** contents of the .htaccess file ******
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 http://mydomaine.com/cgi-sys/defaultwebpage.cgi
###### Situation #####
- I reinstalled my site two weeks ago.
- I use magneto 2.4.2 .
- I installed magento with 'softaculous App installer', without any problem.
- When I want to access my site with my machine, I have no problem, I normally access the site from my machine. Even from a virtual machine installed on my physical machine, I can access my site.
###### Problem : ######
My site is only accessible from my machine. When another person wants to connect to my site, he is redirected to the page http://mydomaine.com/cgi-sys/defaultwebpage.cgi
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
Bash:
/usr/local/cpanel/htdocs/index.html
HTML:
<html><head><META HTTP-EQUIV="refresh" CONTENT="0;URL=/cgi-sys/defaultwebpage.cgi"></head><body></body></html>
HTML:
<html><head><META HTTP-EQUIV="refresh" CONTENT="0;URL=https://mydomaine.com"></head><body></body></html>
2- afterwards, in
Bash:
/etc/apache2/conf/httpd.conf
HTML:
<VirtualHost my_ip_adresse:80>
ServerName my_domaine.com
ServerAlias www.my_domaine.com
DocumentRoot /home/User_name/public_html
</VirtualHost>.
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 http://mydomaine.com/cgi-sys/defaultwebpage.cgi
4- and finally the solution that worked partially.
I read somewhere that this was due to the DNS record. That it was necessary to have clean DNS records.
OK, in fact I had only two errors in my DNS records (at the MX level), but my site was working without any problem with Magento 2.3. so it never bothered me.
But it's not a problem, last night I corrected these MX record errors in my DNS.
Waited for a few moments for it to propagate and a few hours later a friend of mine tried to connect to my site and everything was working fine, he was no longer redirected to the http://mydomaine.com/cgi-sys/defaultwebpage.cgi 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 http://mydomaine.com/cgi-sys/defaultwebpage.cgi .
*NOTE 2:
People can access my site through a proxy.
When they type My_domain.com on KPROXY - Free Anonymous Web Proxy - Anonymous Proxy for example, it goes through without problem.
*NOTE 3:
When I check my DNS records on intoDNS: checks DNS and mail servers health . it doesn't detect any error . all is OK
######## USEFUL INFORMATION ########
* WHM /Cpanel = version 96.0.11
* magennto 2.4.2-p1
**** contents of the .htaccess file ******
Code:
SetEnv MAGE_MODE developer
RewriteEngine on
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
RewriteCond %{REQUEST_URI} !^/pub/
RewriteCond %{REQUEST_URI} !^/setup/
RewriteCond %{REQUEST_URI} !^/update/
RewriteCond %{REQUEST_URI} !^/dev/
RewriteRule .* /pub/$0 [L]
DirectoryIndex index.php
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php74” package as the default “PHP” programming language.
<IfModule mime_module>
AddHandler application/x-httpd-ea-php74 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
Last edited by a moderator: