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

Re: Installing Moodle 2.8.1 to URL without /moodle extension

$
0
0
by Dominique-Alain Jan.  

Hello,

Adding to the propostions made here you could maybe think of using the <VirtualHost> command in your http.conf file (or whatever conf file your service uses). Or better configure a file in (if you are using Apache) your /etc/apache2/sites-available folder.

You could then have something like :

<VirtualHost *:80>
        ServerAdmin myname@mysite.com
        ServerName  mysite.com

        DocumentRoot /var/www/html/moodle/
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>

        <Directory /var/www/html/moodle>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>

        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
                AllowOverride None
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>

        ErrorLog ${APACHE_LOG_DIR}/error-mymoodle.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog ${APACHE_LOG_DIR}/access.log combined

    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

</VirtualHost>


Depending the rights you have on your hosting services providers, you can do this, or do the same with the CPanel.


For more info see for example :

http://httpd.apache.org/docs/2.2/fr/configuring.html

https://docs.moodle.org/20/en/Step-by-step_Installation_Guide_for_Ubuntu


-dajan


Viewing all articles
Browse latest Browse all 46869

Trending Articles



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