Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

enter image description here

I tried this question then after i cannot access from localhost. is there any solution so that i can use both ways

share|improve this question
looking at your print screen i think you are using ubuntu? please post your httpd.conf settings for this site presuming you are using apache2 – Liam Sorsby Apr 4 '14 at 14:27
i am not able to find httpd.conf can you just give where it should be located – Hardik Gajjar Apr 4 '14 at 18:19
up vote 1 down vote accepted

If you follow the answer described in the other section, you can still access it FROM the local host (same machine), but you have to you the syntax:

instead of

share|improve this answer
i tried both but still it's not working.also added allowed ip list then after my moodle crash suddenly – Hardik Gajjar Apr 4 '14 at 13:39
What error does it show when it crashes ? Could you please elaborate what exactly do you mean by it crashes ? – MilesWeb Apr 4 '14 at 14:11
List? It shouldn't be a list, it is what the moodle wwwroot is (what you should be putting into the URL bar of your browser to bring it up). It should look like $CFG->wwwroot = ''; – Digital Chris Apr 4 '14 at 14:13
my problem is we have installed Firewall in Our Company so each Every Time my ip has been change.Its Our project study Part because our company is going to make new LMS and we are taking functionality of moodle. My Machine Is Use as moodle Server – Hardik Gajjar Apr 4 '14 at 18:15
If there is a machine name that will resolve locally on the network, that would solve the problem if your address changes, it would just be $CFG->wwwroot = 'http://machinename'; – Digital Chris Apr 4 '14 at 18:36

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.