1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Vhost pulls up wrong docroot

Discussion in 'Apache' started by Jeff Cold, Oct 1, 2020.

  1. #1
    Ubuntu server 20.04 LTS and Apache 2.4.41. Moodle doc root = /var/www/html/moodle and is defined in /etc/apache2/sites-enabled/000-default.conf for a vhost. We do IP masquerading so oisnc.org should redirect to which gets forwarded to Every time I try http://oisnc.org, Moodle does not come up. Instead the default Apache web page comes up from /var/www/html. The browser tab shows the Moodle logo however. Even http://oisnc.org/moodle brings up the same default Apache page. Using a2ensite oisnc.org I get: ERROR: Site oisnc.org does not exist! but the vhost is defined in 000-default.conf which has a *.conf filename extension. What am I missing?
    Last edited by a moderator: Oct 1, 2020
    Jeff Cold, Oct 1, 2020 IP