PortForwarding and webpage error

PortForwarding and webpage error

لە لایەن aye aung -
Number of replies: 6

Hello,

I am using Moodle 3.11. we installed website in internal VM server. I did not use DNS due to lack of time. We setup to call website from public IP to private IP using port forwarding.

When called with public ip, change private ip of internal server in URL but don't show webpage.

Allow port 80 in port forwarding and firewall in VM.

This is my first time to setup webserver.

Please help me.



تێکرایى نمرەپێدراوەکان: -
In reply to aye aung

Re: PortForwarding and webpage error

لە لایەن Visvanath Ratnaweera -
وێنەی Particularly helpful Moodlers وێنەی Translators

P.S. This is a question about using Moodle, not about development. May be for Installing an upgrading or General help.
In reply to aye aung

Re: PortForwarding and webpage error

لە لایەن Howard Miller -
وێنەی Core developers وێنەی Documentation writers وێنەی Particularly helpful Moodlers وێنەی Peer reviewers وێنەی Plugin developers
Moving to installation forum.

You can only have one $CFG->www value in config.php. You have two - internal and external. It simply won't work.

" I did not use DNS due to lack of time"

You are answering your own question.
تێکرایى نمرەپێدراوەکان:Useful (1)
In reply to Howard Miller

Re: PortForwarding and webpage error

لە لایەن aye aung -
Can't work using port forwarding?
I must use DNS. Is there no other way?
In reply to aye aung

Re: PortForwarding and webpage error

لە لایەن Leon Stringer -
وێنەی Core developers وێنەی Particularly helpful Moodlers

Moodle can work using port forwarding, you may need $CFG->reverseproxy = true in config.php for this.

But a Moodle site must have a single URL specified as part of its configuration, in $CFG->wwwroot. This must be the URL used to access the site. If you want to use an IP address then all users must access the site using one IP address.

DNS allows the use of both public and private IP addresses by use of Internet-hosted DNS servers providing the public IP address and an internal DNS server providing the private IP address.

DNS was invented so humans don't have to remember IP addresses. Using an IP address prevents your site from using HTTPS.

تێکرایى نمرەپێدراوەکان:Useful (1)