Installing and upgrading help

Redirect Loop??

 
Picture of curt bixel
Redirect Loop??
 

I am using moodle 2.9.

I recently lost my domain name of curt-bixel.com due to a combination of events I don't really want to go into.

I still had access to my course through the direct IP address of 104.131.35.160

I just purchased a new domain of curtbixel.com through 1&1 domain names.

I now can no longer access my website.  

When I type in curtbixel.com it seems to be caught in a redirect loop.

Now it just says:

Incorrect access detected, this server may be accessed only through "http://curtbixel.com" address, sorry.
Please notify server administrator.

This page should automatically redirect. If nothing is happening please use the continue link below.
Continue


I am pretty sure it is trying to redirect to my site, but it just seems to redirect back to this same page.  

Can anyone tell me what I need to do to fix this?






 
Average of ratings: -
Picture of Sam Alken
Re: Redirect Loop??
 

Hi,

You should check your config.php in your home folder to make sure that the domain you're using is the domain through which Moodle can be reached. Check for the $CFG->wwwroot and change the address between '.' to the address you're using to reach the site.

 
Average of ratings: -
Picture of Emma Richardson
Re: Redirect Loop??
Documentation writersParticularly helpful Moodlers

This is an issue with the web server - the url that is pulling up is http://moodle-1840-18409-42718.cloudwaysapps.com/

So the server must be redirecting to this different address.

 

 
Average of ratings: -
Picture of curt bixel
Re: Redirect Loop??
 

The public IP address of my server is:  104.131.35.160

This is my server at Cloudways, and this is where my moodle site has been working for the past 3 years.  

When you enter this IP address in the URL bar, it takes you to my moodle site and the URL bar changes to display http://moodle-1840-18409-42718.cloudwaysapps.com/.

But, in the past, it has redirected from this page to the login page for my website.  

Now, however, it just redirects back to this same page.


Here is a copy of my config file:


<?php  // Moodle configuration file


unset($CFG);

global $CFG;

$CFG = new stdClass();


$CFG->dbtype    = 'mysqli';

$CFG->dblibrary = 'native';

$CFG->dbhost    = 'localhost';

$CFG->dbname    = 'uvrgzvmfpb';

$CFG->dbuser    = 'uvrgzvmfpb';

$CFG->dbpass    = 'NBKGVP4waD';

$CFG->prefix    = 'mdl_';

$CFG->dboptions = array (

  'dbpersist' => 0,

  'dbport' => '',

  'dbsocket' => '',

);


$CFG->wwwroot   = 'http://curtbixel.com';

$CFG->dataroot  = '/home/13703-18409.cloudwaysapps.com/uvrgzvmfpb/public_html/moodledata';

$CFG->admin     = 'admin';


// Beginning of Configuration Code for Memcached




//$CFG->cachetype='memcached';

//$CFG->rcache = true;

//$CFG->memcachedhosts= '127.0.0.1';

//$CFG->memcachedpconn=true;



// End of Configuration Code for Memcached



$CFG->directorypermissions = 02770;



$CFG->cachetype='memcached';

$CFG->rcache = true;

$CFG->memcachedhosts= '127.0.0.1:11211';

$CFG->memcachedpconn=true;



require_once(dirname(__FILE__) . '/lib/setup.php');


// There is no php closing tag in this file,

// it is intentional because it prevents trailing whitespace problems!

 
Average of ratings: -
Picture of curt bixel
Re: Redirect Loop??
 

And here is a good clue.  This is the tracing of the redirects that are happening:

http://curtbixel.com

302 Redirect
http://moodle-1840-18409-42718.cloudwaysapps.com/
Meta-Refresh
http://curtbixel.com
302 Redirect
http://moodle-1840-18409-42718.cloudwaysapps.com/
Meta-Refresh
http://curtbixel.com
302 Redirect
http://moodle-1840-18409-42718.cloudwaysapps.com/
Meta-Refresh
http://curtbixel.com
302 Redirect
http://moodle-1840-18409-42718.cloudwaysapps.com/
Meta-Refresh
http://curtbixel.com
302 Redirect
http://moodle-1840-18409-42718.cloudwaysapps.com/
Meta-Refresh
http://curtbixel.com
Error Tracing URL
Error: There were too many redirections in trace.

 
Average of ratings: -
Picture of curt bixel
Re: Redirect Loop??
 

I am making progress.  I went to my server at cloudways and deleted my domain name from under "Primary Domain."  

Now, my site can be found with curtbixel.com and www.curtbixel.com

The URL bar now displays:

http://moodle-1840-18409-42718.cloudwaysapps.com/

I would love to have it display just curtbixel.com


 
Average of ratings: -
Picture of Emma Richardson
Re: Redirect Loop??
Documentation writersParticularly helpful Moodlers

I guess I would talk to cloudway about that...

 
Average of ratings: -
Picture of Ken Task
Re: Redirect Loop??
Particularly helpful Moodlers

Did you change the A record in the DNS server that is authortative for your domain curtbixel.com?

In my neck of the woods ... SA, Tx

dig -x 104.131.35.168
shows:
160.35.131.104.in-addr.arpa. 1800 IN    PTR    13703-18409.cloudwaysapps.com.

curtbilxel.com, however, is still mapped to anther IP address:

dig curtbixel.com

;; ANSWER SECTION:
curtbixel.com.        3600    IN    A    74.208.236.34

So the DNS servers that are authoritative for that domain:

;; QUESTION SECTION:
;curtbixel.com.            IN    NS

;; ANSWER SECTION:
curtbixel.com.        3600    IN    NS    ns1025.ui-dns.biz.
curtbixel.com.        3600    IN    NS    ns1060.ui-dns.org.
curtbixel.com.        3600    IN    NS    ns1088.ui-dns.de.
curtbixel.com.        3600    IN    NS    ns1078.ui-dns.com.

need to have the A record for curtbixel.com changed from
74.208.236.34 to the new IP 104.131.35.160

And, of course, config.php file checked.

Changes to DNS do take a little time to propagate to the internet in general.



'spirit of sharing', Ken


 
Average of ratings: -