Replace Moodle with Custom Name for Intranet Web Sites configured with Static IP Address

Replace Moodle with Custom Name for Intranet Web Sites configured with Static IP Address

by Vishal Lanke -
Number of replies: 3
We have installed Moodle as LMS for our organization. We use XAMPP server for this. Currently , employees are accessing it using https://136.77.77.123:444/moodle/


I want to remove moodle and add LMS to it - https://136.77.77.123:444/LMS/

How can I use Moodle -> Admin -> Replace Tool on IP Address ?

Average of ratings: -
In reply to Vishal Lanke

Re: Replace Moodle with Custom Name for Intranet Web Sites configured with Static IP Address

by Vishal Lanke -

I tried to follow steps specified on https://www.inmotionhosting.com/support/edu/moodle/advanced-tutorials/change-url

However, it wont work if website is hosted usign IP or its in Intranet. In my case, I have not created any Virtual Hosts. We are just accessing moodle using https://machinename or IP Address : 444/ Moodle

In reply to Vishal Lanke

Re: Replace Moodle with Custom Name for Intranet Web Sites configured with Static IP Address

by Luis de Vasconcelos -

I don't have an Apache box nearby... but can't you just try renaming the /moodle folder in your Apache site config to /LMS?

In reply to Vishal Lanke

Re: Replace Moodle with Custom Name for Intranet Web Sites configured with Static IP Address

by Ken Task -
Picture of Particularly helpful Moodlers

IF you want to have your Moodle code at the root of the web service, check out the apache config for 'document root' ... dunno about Windows but if it were a linux box document root for RH family is /var/www/html/ ... your moodle folder is in there.   Change document root to /var/www/html/moodle/ then the only thing served out is moodle code.  No real reason for subdirectory (moodle or LMS) unless you want to run static web pages or word press or something else at doc root.

You would need to run search and replace ..

Search: 'https://IP:port/moodle/' replace with 'https://IP:port/'

The  protocol in front and the trailing '/' at the end needed.   config.php file would need changing also.

But ... you've much more important and larger problem ...

Now one of the reasons you might not be able to use virtual apaches with DNS is the IP ... I've seen this one time before many years ago ... company that setup the local network for an ISD used a public IP block of addresses ... randomly selected  so I was told.   The ip you are using right now belongs to Ford Motor Corp.

Your network isn't part of ford.com is it?

'spirit of sharing', Ken