Hello,
how do I activate the slash arguments function? i have the basic installation of myvesta and i am installing moodle 3.9, i have php 7.3 mfp with apache as web server and nginx as proxy.
Can you help me? i am trying to follow this guide https://docs.moodle.org/37/en/Apache#Slasharguments but i cannot.
thank's
Solved: moodle 3.9 slash arguments
I also tried to put the command in the .htaccess file created in public_html and in the local / home / user / conf / web files both in the ssl file and in the normal file as suggested by this solution https://serverfault.com/questions/58366 ... -in-apache.
I have also tried to disable nginx but I lose access to the site.
I also restored the clean debian and reinstalled everything, to avoid having to modify some files making mistakes
I have also tried to disable nginx but I lose access to the site.
I also restored the clean debian and reinstalled everything, to avoid having to modify some files making mistakes
I disabled Nginx and ssl, modified moodle's config.php and logged me in, so the problem is with nginx.
I try to follow this https://docs.moodle.org/37/en/Nginx#Slasharguments and see if I can solve it by leaving nginx enabled
I try to follow this https://docs.moodle.org/37/en/Nginx#Slasharguments and see if I can solve it by leaving nginx enabled
- myVesta
- Site Admin
- Posts: 932
- Joined: Fri Jun 19, 2020 9:59 am
- Has thanked: 8 times
- Been thanked: 6 times
Aha!
Then we need to make separate nginx template.
You can grab
/usr/local/vesta/data/templates/web/nginx/hosting.tpl
/usr/local/vesta/data/templates/web/nginx/hosting.stpl
copy it to
/usr/local/vesta/data/templates/web/nginx/hosting-moodle.tpl
/usr/local/vesta/data/templates/web/nginx/hosting-moodle.stpl
edit those files and adapt it to https://docs.moodle.org/37/en/Nginx#Nginx
probably hard to figure out what you should change there... maybe I get some time to see what's going there...
on first look...
find
and BEFORE it add:
also, before 'location' blocks try to add
Do it in both .tpl and .stpl fle.
Then try to set "hosting-moodle" proxy template to your domain (WEB -> Edit)
Then we need to make separate nginx template.
You can grab
/usr/local/vesta/data/templates/web/nginx/hosting.tpl
/usr/local/vesta/data/templates/web/nginx/hosting.stpl
copy it to
/usr/local/vesta/data/templates/web/nginx/hosting-moodle.tpl
/usr/local/vesta/data/templates/web/nginx/hosting-moodle.stpl
edit those files and adapt it to https://docs.moodle.org/37/en/Nginx#Nginx
probably hard to figure out what you should change there... maybe I get some time to see what's going there...
on first look...
find
Code: Select all
location /error/ {
alias %home%/%user%/web/%domain%/document_errors/;
}
Code: Select all
location ~ [^/]\.php(/|$) {
proxy_pass http://%ip%:%web_port%;
}
Code: Select all
rewrite ^/(.*\.php)(/)(.*)$ /$1?file=/$3 last;
Then try to set "hosting-moodle" proxy template to your domain (WEB -> Edit)