Moodle

URLs in news forum rss feed point to localhost

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Not a bug
  • Affects Version/s: 1.6.1
  • Fix Version/s: None
  • Component/s: RSS
  • Labels:
    None
  • Environment:
    Windows 2000, IIS, MySQL
  • Database:
    MySQL
  • Affected Branches:
    MOODLE_16_STABLE

Description

URLs in the rss file generated by the default news forum start with 'http://localhost'.

Activity

Hide
Petr Škoda (skodak) added a comment -

Hi!

could you please check your server configuration (file config.php), I suppose that you have localhost in your $CFG->wwwroot

skodak

Show
Petr Škoda (skodak) added a comment - Hi! could you please check your server configuration (file config.php), I suppose that you have localhost in your $CFG->wwwroot skodak
Hide
David Jackson added a comment -

Hi Petr,
Our wwwroot is set to point to...
$CFG->wwwroot = 'http://' . $_SERVER['HTTP_HOST'] . '/moodle' ;
...which resolves to 'http://intranet/moodle'

Also, not sure if these problems are related, but when the overnight backups fail I get an email with a link to the backup logs....

Please take a look at your backup logs in:
http://localhost/moodle/backup/log.php

Localhost should be 'intranet' here aswell.

Cheers
David

Show
David Jackson added a comment - Hi Petr, Our wwwroot is set to point to... $CFG->wwwroot = 'http://' . $_SERVER['HTTP_HOST'] . '/moodle' ; ...which resolves to 'http://intranet/moodle' Also, not sure if these problems are related, but when the overnight backups fail I get an email with a link to the backup logs.... Please take a look at your backup logs in: http://localhost/moodle/backup/log.php Localhost should be 'intranet' here aswell. Cheers David
Hide
Petr Škoda (skodak) added a comment -

You configuration is incorrect, there must be only one wwwroot URL - you must not use $_SERVER['HTTP_HOST'] !

The easiest solution is to tweak internal DNS to return intranet IP address of the server for the external URL and use only external URL for both intranet and internet.

Show
Petr Škoda (skodak) added a comment - You configuration is incorrect, there must be only one wwwroot URL - you must not use $_SERVER['HTTP_HOST'] ! The easiest solution is to tweak internal DNS to return intranet IP address of the server for the external URL and use only external URL for both intranet and internet.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: