I’ve been very frustrated about my Dlink DIR-635 not working N-mode, although it’s a wireless-N router and I have only wireless-N devices in my home. So yesterday, I thought I’d force only wireless-N coming out from my router. (I have multiple choices and combinations between B, G and N) And when I tried that, a popup appeared letting me know I can’t use wireless-N only using TKIP encryption. FUCK! I’ve been using TKIP (instead of AES) for a long time now, and since then, I’ve been using only wireless-G speed. So, I’ve switched to AES encryption and now all devices are connecting on speeds much greater than 54Mbps.

moodle.domain.com, external, accessible from Internet, and moodle.domain.local, a local domain, accessible only from local LAN. Unfortunately, moodle redirected users from moodle.domain.com to moodle.domain.local, because at setup, the local domain was set. I’ve set up Apache using IP based virtual hosts, but still nothing. Users were redirected. After googling a little, I’ve found the solution for this crap. You have to edit config.php file in the root of moodle like this:

Like this, will use the hostname in URL. Considering it’s IP based virtualhost, it will not change the home dir for the website, and uses Apache variable which is exactly what you need the wwwroot variable in moodle.