Liferay:更改公共虚拟主机设置后,无法登录 [英] Liferay: After changing Public Virtual Host settings, can't log in

查看:117
本文介绍了Liferay:更改公共虚拟主机设置后,无法登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我犯了一个错误,并且似乎不能单独解决它,如果可以解决的话.我的Liferay URL看起来像这样:http://192.168.10.10:8080/web/guest;我想从地址中删除'/web/guest'部分,因此从管理->设置"中将192.168.10.10:8080写入了公共虚拟主机"字段.保存后,我将无法登录.每次我写http://192.168.10.10:8080/login时(就像以前一样),它都会转到索引页面而不是登录页面.

I did a mistake and seems like I can't fix it alone, if it can be fixed. I have the Liferay URL looking like this: http://192.168.10.10:8080/web/guest; I wanted to remove the '/web/guest' part from the address so from Manage -> Settings wrote 192.168.10.10:8080 to the Public Virtual Host field. After saving it, I can't log in anymore. Everytime I write http://192.168.10.10:8080/login (as I did before), it goes to the index page and not the login page.

然后,如果我在'web/guest'之后写了login,则可以转到登录页面,但是当我填写用户名和密码"字段并单击提交"按钮时,它什么也没做,即没有采取任何措施,最有可能是由于我之前设置的权限.只有所有者拥有全部权利.

Then if I write the login after 'web/guest', I can go to the login page, but when I fill in the Username and Password field and hit Submit button, it goes nowhere, that is no action taken, which most probably is because of the permissions that I have set earlier. Only owner has full rights.

我以为在数据库(MySql)的某个地方可以清除已写入公共虚拟主机"字段的内容,但是从表名中看不出来是哪个表.现在,我正在尝试从数据库更改用户权限,但没有结果.我什至从一个2周的转储中恢复了数据库,但是好像公共虚拟主机的更改保存在其他地方而不是数据库中.

I thought somewhere in the database (MySql) I could clear what I have written to the Public Virtual Host field, but from the table names couldn't tell which table is for that. Now I am trying to change the user privileges from the DB, no result yet. I even restored the DB from a 2-weeks-old dump, but seems like the Public Virtual Host changes are saved somewhere else and not the DB.

我感谢您对此提供的任何帮助或见解.

I appreciate any help or insight on this.

提前谢谢!

推荐答案

最终解决了该问题.我只需要从数据库中修复虚拟主机即可.

Finally solved the problem. I just needed to fix the virtual host from the database.

这是我的脚本,以防有人做了我所做的事情:)

Here is my script in case someone did what I did:)

update LayoutSet SET
    -> virtualHost = '192.168.10.10'
    -> WHERE virtualHost = '192.168.10.10:8080';

这篇关于Liferay:更改公共虚拟主机设置后,无法登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆