
Olá, estou usando nginx e ubuntu 18 para meu site moodle
adiciono um domínio e sempre que tento acessá-lo ele sempre me redireciona para o meu endereço IP.
aqui está meu bloco
server {
listen 80;
listen [::]:80;
root /var/www/html/moodle;
index index.php index.html index.htm;
server_name moodle.mysqite.com;
location / {
try_files $uri $uri/ =404;
}
location /dataroot/ {
internal;
alias /var/www/html/moodledata/;
}
location ~ [^/]\.php(/|$) {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
Responder1
na verdade, o moodle fez o redirecionamento. Tenho que alterar o config.php dentro da pasta moodle do site