Quantcast
Channel: Installing and upgrading help
Viewing all articles
Browse latest Browse all 47018

Re: Domain name without www loads with no theme

$
0
0
by Bruno Soldier.  

[Moodle 2.3]

Thank you for the suggestion.

I have moodle installed in /var/www/html/moodle

I have changed document root in httpd.conf to /var/www/html/moodle so browsing to www.mydomain.org loads the moodle site.

There is no moodle.conf file in conf.d, so I created moodle.conf and put these two lines there:

Alias /www.mydomain.org /var/www/html/moodle
Alias /mydomain.org /var/www/html/moodle

This didn't work.

I also tried mod_rewrite in a .htaccess file placed in /var/www/html/moodle:

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^mydomain.org [NC]
RewriteRule ^(.*)$ http://www.mydomain.org/$1 [R=301,L]

In the rewrite log, I see that mydomain.org is never seen as an input, only www.mydomain.org.  I don't understand that at all, since I am clearly loading mydomain.org, not with "www" prepended.

What I get is the site stripped of theme, and on the Firefox title bar "In Maintenance Mode"

I would think this would be a common issue, to want a user to be able to access a Moodle site with and without "www".


Viewing all articles
Browse latest Browse all 47018


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>