######Edit the vhost file sudo nano /etc/apache/sites-available/xxxxx.conf ServerName your_lms_url DocumentRoot /var/www/html/moodle ... ######Edit moodle config file $CFG->wwwroot = 'http://your_lms_url:50005'; $CFG->dataroot = '/path/to/your/moodledata'; $CFG->admin = 'admin'; ######Allow port 50005 thru UFW sudo ufw allow 50005/tcp sudo ufw reload ################################################################################## #####Ensure Apache or Nginx Listens on Port 50005 (Optional) If Moodle runs on Apache and you're directly serving on port 50005, make sure Apache is listening: In /etc/apache2/ports.conf, add: Listen 50005 ####Make sure: -- Port 50005 is open on the firewall --You are forwarding traffic from: your_lms_url:50005 → 192.168.200.8:80 ######Add DNS Mapping for LAN Users (Better UX) Ask the IT team to map the domain your_lms_url g to 192.168.200.8 in the LAN DNS, so users on LAN don’t go outside to access the site. OR If there is no DNS, instruct users to add this to their PCs' hosts file: Windows: Edit C:\Windows\System32\drivers\etc\hosts and add: 192.168.200.8 your_lms_url