Mapping IP address

Mapping IP address

by Nitesh Tarbani -
Number of replies: 2

I have installed Moodle on ubuntu 16.04. In config.php www root is set to 192.168.21.123/moodle

I am using apache server 2 with server address 192.168.21.123

I have mapped my external IP address 114.*.*.* to internal IP address 192.168.21.123 and its able to reach apache2 default page but its (114.*.*.*/moodle) not able to reach Moodle .


 can Anyone please help me on this.

Average of ratings: -
In reply to Nitesh Tarbani

Re: Mapping IP address

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Two problems...

If you've forward the external IP to the internal IP on your router/firewall (or whatever) and it doesn't work, then that's nothing to do with Moodle. You'd need to be more specific about what 'not able to reach' looks like. What happens or doesn't happen? What errors do you see?

You can't do this with IP addresses anyway. What are you going to set $CFG->wwwroot to in config.php? You have two different Moodle urls and that doesn't work. You need to have a proper host name which is mapped in DNS to different IPs internally and externally.