对于我的用户版本,我必须确保密码和重复密码相同。我找到了“比较”验证器,但我不能让它工作。
我的模型如下所示:
public class UserEditionViewModel{
[Compare("User.Password")]
public String RepeatPassword{get;set;}
public User User {get;set;}
public List<Language> AvailableLanguages{get;set;}
public List<Country> Availab
我可以通过VirtualBox和Ubuntu桌面设置一个Moodle (学习平台)网络服务器。在本地机器和局域网上,可以通过访问192.xxx.xxx.xxx/moodle no problem来打开Moodle。在我的网络上打开端口80之后,我还可以通过从外部网络访问我的公共IP地址,成功地打开Apache2默认索引页。
但是,当我尝试访问my.public.ip.address/moodle时,Moodle会重定向到服务器的本地192.xxx.xxx.xx/moodle,如果从外部网络访问,显然会失败。如何让Moodle直接接受"my.public.ip.address/moodl