由WordPress设置的奇怪cookie安装在子目录中

时间:2018-02-13 12:12:54

标签: wordpress

我想安装&在/journal中配置我的WordPress网站,如:

https://example.com/journal/

安装完成后,当我尝试访问/wp-admin时,他们说我的浏览器中没有配置Cookie设置但我无法登录。当我点击curl时:

$ curl -I localhost/journal/wp-login.php
HTTP/1.1 200 OK
Date: Tue, 13 Feb 2018 12:02:28 GMT
Server: Apache/2.4.6 (Amazon Linux 2) PHP/7.2.0
X-Powered-By: PHP/7.2.0
Expires: Wed, 11 Jan 1984 05:00:00 GMT
Cache-Control: no-cache, must-revalidate, max-age=0
Set-Cookie: wordpress_test_cookie=WP+Cookie+check; path=/journal/journal/; secure
X-Frame-Options: SAMEORIGIN
Content-Type: text/html; charset=UTF-8

我认为Cookie路径为/journal/journal/是我无法正常登录的原因。需要什么样的附加配置来正确设置我的cookie?

0 个答案:

没有答案