I have tested further, and the ip it get send to is the IP of the visitor.
I was able to see your website once on multiple clients, the minute I try to access it again, I gey redirected to my own ip on every devices I tried and different connexions.
check your httaccess and website settings, I think you have set wrong a redirection to the client ip instead of one of your domain
could also be in cloudflare but I will accuse first a httaccess or custom setting on your website or webserver
no dns hijacking
There is no .htaccess file in the Primary ibay where the site resides. I was also under the impression that SME Server blocked the use of htaccess files by default.
As for custom templates causing the issue I highly doubt it but here is the list of all of them for the httpd.conf file with their contents:
35SSL10SSLHonorCipherOrder contains:
SSLHonorCipherOrder on
35SSL30SSLProtocol contains:
{
# Specify which SSL Protocols to accept for this context
}
SSLProtocol all -SSLv2 -SSLv3 -TLSv1
75AddTypesAV contains:
# MIME-types for audio and video
#
# Audio
AddType audio/mp4 m4a f4a f4b
AddType audio/ogg oga ogg
# JavaScript
# Normalize to standard type (it's sniffed in IE anyways):
# http://tools.ietf.org/html/rfc4329#section-7.2
AddType application/javascript js jsonp
AddType application/json json
# Video
AddType video/mp4 mp4 m4v f4v f4p
AddType video/ogg ogv
AddType video/webm webm
AddType video/x-flv flv
# Web fonts
AddType application/font-woff woff
AddType application/vnd.ms-fontobject eot
# Browsers usually ignore the font MIME types and sniff the content,
# however, Chrome shows a warning if other MIME types are used for the
# following fonts.
AddType application/x-font-ttf ttc ttf
AddType font/opentype otf
# Make SVGZ fonts work on iPad:
# https://twitter.com/FontSquirrel/status/14855840545
AddType image/svg+xml svg svgz
AddEncoding gzip svgz
90e-smithAccess40ibays contains:
#------------------------------------------------------------
# Information bay directories
# override file that defaults iBays to indexes disabled
# place this file in /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf
#------------------------------------------------------------
{
use esmith::AccountsDB;
my $adb = esmith::AccountsDB->open_ro();
$OUT = "";
foreach my $ibay ($adb->ibays)
{
my %properties = $ibay->props;
my $key = $ibay->key;
#------------------------------------------------------------
# Figure out which combination of parameters to use. If
# PublicAccess parameter is present, this is e-smith 4.0.
# Otherwise, it's e-smith 3.0.
#------------------------------------------------------------
my $allow;
my $pass;
my $satisfy;
if ($properties{'PublicAccess'})
{
if ($properties{'PublicAccess'} eq 'none')
{
next;
}
elsif ($properties{'PublicAccess'} eq 'local')
{
$allow = $localAccess;
$pass = 0;
$satisfy = 'all';
}
elsif ($properties{'PublicAccess'} eq 'local-pw')
{
$allow = $localAccess;
$pass = 1;
$satisfy = 'all';
}
elsif ($properties{'PublicAccess'} eq 'global')
{
$allow = 'all';
$pass = 0;
$satisfy = 'all';
}
elsif ($properties{'PublicAccess'} eq 'global-pw')
{
$allow = 'all';
$pass = 1;
$satisfy = 'all';
}
elsif ($properties{'PublicAccess'} eq 'global-pw-remote')
{
$allow = $localAccess;
$pass = 1;
$satisfy = 'any';
}
}
elsif ($properties {'ReadAccess'} eq 'global')
{
if ($properties {'UsePassword'} eq 'yes')
{
$allow = 'all';
$pass = 1;
$satisfy = 'all';
}
else
{
$allow = 'all';
$pass = 0;
$satisfy = 'all';
}
}
else
{
if ($properties {'UsePassword'} eq 'yes')
{
$allow = $localAccess;
$pass = 1;
$satisfy = 'all';
}
else
{
$allow = $localAccess;
$pass = 0;
$satisfy = 'all';
}
}
my $allowOverride = $properties{'AllowOverride'} || "None";
my $dynamicContent = $properties{'CgiBin'} || "disabled";
my $followSymLinks = $properties{'FollowSymLinks'} || "disabled";
my $indexes = $properties{'Indexes'} || "disabled";
$OUT .= "\n";
$OUT .= "#------------------------------------------------------------\n";
$OUT .= "# $key ibay directories ($properties{'Name'})\n";
$OUT .= "#------------------------------------------------------------\n";
$OUT .= "\n";
$OUT .= "<Directory /home/e-smith/files/ibays/$key/html>\n";
$OUT .= " ErrorDocument 400 /http_error.php?error_id=400\n";
$OUT .= " ErrorDocument 401 /http_error.php?error_id=401\n";
$OUT .= " ErrorDocument 403 /http_error.php?error_id=403\n";
$OUT .= " ErrorDocument 404 /http_error.php?error_id=404\n";
$OUT .= " ErrorDocument 405 /http_error.php?error_id=405\n";
$OUT .= " ErrorDocument 408 /http_error.php?error_id=408\n";
$OUT .= " ErrorDocument 415 /http_error.php?error_id=415\n";
$OUT .= " ErrorDocument 416 /http_error.php?error_id=416\n";
$OUT .= " ErrorDocument 417 /http_error.php?error_id=417\n";
$OUT .= " ErrorDocument 500 /http_error.php?error_id=500\n";
$OUT .= " ErrorDocument 501 /http_error.php?error_id=501\n";
$OUT .= " ErrorDocument 502 /http_error.php?error_id=502\n";
$OUT .= " ErrorDocument 503 /http_error.php?error_id=503\n";
$OUT .= " ErrorDocument 504 /http_error.php?error_id=504\n";
$OUT .= " ErrorDocument 505 /http_error.php?error_id=505\n";
$OUT .= " Options None\n";
$OUT .= " Options +Indexes\n" if ($indexes eq 'enabled');
$OUT .= " Options +FollowSymLinks\n" if ($followSymLinks eq 'enabled');
if ($dynamicContent eq 'enabled')
{
$OUT .= " Options +Includes\n";
}
else
{
$OUT .= " DirectoryIndex index.htm index.html\n";
$OUT .= " Options +IncludesNOEXEC\n";
$OUT .= " <FilesMatch \"\\.(php|php3|phtml)\$\">\n";
$OUT .= " order deny,allow\n";
$OUT .= " Deny from all\n";
$OUT .= " </FilesMatch>\n";
}
$OUT .= " AllowOverride $allowOverride\n";
$OUT .= " order deny,allow\n";
$OUT .= " deny from all\n";
$OUT .= " allow from $allow\n";
if ($pass)
{
$OUT .= " AuthName \"$properties{'Name'}\"\n";
$OUT .= " AuthType Basic\n";
$OUT .= " AuthExternal pwauth\n";
$OUT .= " require user $key\n";
$OUT .= " Satisfy $satisfy\n";
}
if (($properties{PHPRegisterGlobals} || 'disabled') eq 'enabled')
{
$OUT .= " php_flag register_globals on\n";
}
$OUT .= "</Directory>\n";
$OUT .= "\n";
$OUT .= "<Directory /home/e-smith/files/ibays/$key/cgi-bin>\n";
if ($dynamicContent eq 'enabled')
{
$OUT .= " Options ExecCGI\n";
}
$OUT .= " AllowOverride None\n";
$OUT .= " order deny,allow\n";
$OUT .= " deny from all\n";
$OUT .= " allow from $allow\n";
if ($pass)
{
$OUT .= " AuthName \"$properties{'Name'}\"\n";
$OUT .= " AuthType Basic\n";
$OUT .= " AuthExternal pwauth\n";
$OUT .= " require user $key\n";
$OUT .= " Satisfy $satisfy\n";
}
$OUT .= "</Directory>\n";
$OUT .= "\n";
$OUT .= "<Directory /home/e-smith/files/ibays/$key/files>\n";
$OUT .= " AllowOverride None\n";
$OUT .= " order deny,allow\n";
$OUT .= " deny from all\n";
$OUT .= " allow from $allow\n";
if ($pass)
{
$OUT .= " AuthName \"$properties{'Name'}\"\n";
$OUT .= " AuthType Basic\n";
$OUT .= " AuthExternal pwauth\n";
$OUT .= " require user $key\n";
$OUT .= " Satisfy $satisfy\n";
}
$OUT .= "</Directory>\n";
}
}
91e-smithAccessPrimarysubdirs contains:
#------------------------------------------------------------
# Primary Information bay limited subdirectories
# place this file in /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf
#------------------------------------------------------------
<Directory /home/e-smith/files/ibays/Primary/html/adminstrator>
Options None
Options +Includes
SSLRequireSSL
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.1 10.0.3.0/255.255.255.0
AuthType Basic
AuthBasicProvider external
AuthName "WD Site Admin"
AuthExternal pwauth
Require user admin
Satisfy any
</Directory>
and finally 92Expires contains:
#------------------------------------------------------------
# File Type Expiration
# place this file in /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf
#------------------------------------------------------------
<IfModule expires_module>
ExpiresActive On
ExpiresDefault "access plus 10 days"
ExpiresByType text/html "access plus 2 days"
ExpiresByType image/gif "access plus 60 days"
ExpiresByType image/jpg "access plus 60 days"
ExpiresByType image/png "access plus 60 days"
ExpiresByType application/javascript "access plus 60 days"
ExpiresByType text/css "access plus 60 days"
ExpiresByType image/x-icon "access plus 60 days"
</IfModule>
Unless you count the ErrorDocument settings you can see there are no redirects of any kind in my custom templates.
Just in case it helps here are the database settings for the primary ibay:
[root@www ~]# db accounts show Primary
Primary=ibay
AllowUrlFopen=enabled
AllowUrlfOpen=enabled
CgiBin=enabled
DisabledFunctions=show_source,symlink,dl,shell_exec,passthru,escapeshellcmd,phpinfo
Group=shared
Indexes=disabled
MailForceSender=info@westerndepot.com
MaxExecutionTime=120
MaxFileUpload=50
MemoryLimit=348M
Modifiable=no
Name=Primary i-bay
PasswordSet=no
Passwordable=no
PostMaxSize=200M
PublicAccess=global
Removable=no
SSLRequireSSL=disabled
UploadMaxFilesize=40M
UserAccess=wr-admin-rd-group
Frankly I'm not seeing anything on the server that would be causing the problem. Besides that I would think a server setting would affect all browsers and not just some of them which I what I am running into when trying access from my computer on the server's local network here with only Edge and Chrome ever having any problem accessing the site.
I don't know of any contributions that would cause server redirects but here is a complete list of what is installed just in case: Sendmail-Wrapper, Letsencrypt, Webhosting, Hardware Info, AWStats, Fail2ban, Mod Deflate, PHPMyAdmin, Vacation.
I also have the scripts from the DAR2 contribution installed for better backups since they work with SME10 even though the server panel doesn't. Those were copied over from our server when it was still running SME9 and tested on our SME10 test server before I actually used them. I found I only needed to add one folder to the backup configuration for the scripts in order for them to work properly under SME10. It's too bad that contribution didn't get updated for SME10.