drupal8

两个域名同时指向一个基于Drupal8开发的网站却只有一个域名正常登陆

Submitted by dravenk on Tue, 04/03/2018 - 14:18

例如exampleA.local和exampleB.local同时解析到同一个服务器网站,能够在exampleA.local正常登录,但在exampleB.local登录的时候却遇到:

Access denied
You are not authorized to access this page. 

修改nginx配置文件解决这个了这个问题,出问题的nginx配置文件如下

upstream exampleA.local{
...
}
...
location / {
  proxy_pass http://exampleA.local;
}

将完整的exampleA.local修改掉:

upstream exampleA{
...
}
...
location / {
  proxy_pass http://exampleA;
}

 

Unable to install the <em class="placeholder">points</em> module since it does not exist.

Submitted by dravenk on Sun, 11/12/2017 - 09:50

 

Unable to install the <em class="placeholder">points</em> module since it does not exist.


Import the listed configuration changes? (y/n): y

Drupal\Core\Config\ConfigImporterException: There were errors validating the config synchronization. in Drupal\Core\Config\ConfigImporter->validate() 

[error]

 

(line 728 of /var/www/html/core/lib/Drupal/Core/Config/ConfigImporter.php).