Issue Details (XML | Word | Printable)

Key: MDL-7090
Type: Bug Bug
Status: Closed Closed
Resolution: Not a bug
Priority: Minor Minor
Assignee: Petr Škoda (skodak)
Reporter: David Jackson
Votes: 0
Watchers: 1
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

URLs in news forum rss feed point to localhost

Created: 19/Oct/06 12:06 PM   Updated: 20/Oct/06 07:15 AM
Component/s: RSS
Affects Version/s: 1.6.1
Fix Version/s: None

Environment: Windows 2000, IIS, MySQL

Database: MySQL
Participants: David Jackson and Petr Škoda (skodak)
Security Level: None
Affected Branches: MOODLE_16_STABLE


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

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Petr Škoda (skodak) added a comment - 19/Oct/06 04:26 PM
Hi!

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

skodak


David Jackson added a comment - 20/Oct/06 04:19 AM
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


Petr Škoda (skodak) added a comment - 20/Oct/06 07:15 AM
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.