在Kentico中创建多个站点? [英] Creating more than one site in Kentico?

查看:251
本文介绍了在Kentico中创建多个站点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我打算使用Kentico创建多个商店(站点)并为每个商店分配用户以添加/修改/删除他的产品,我已经创建了2个商店,第一个商店的域名为localhost:8080,第二个商店是如 Kentico文档URL ,我可以正常打开第一个站点,但是当我尝试切换到第二个站点时,它会给我 Bad Request-Invalid Hostname (无效请求-无效的主机名). ..如果有人帮助我如何使用Kentico API提取产品数据,我也将不胜感激,因为文档只为我提供了更新/修改/从数据库中删除数据的功能,我想知道如何显示它的附件,如图像pdf我已经上传了.

Am going to use Kentico to create more than one store (Site) and assign user for each store to add/modify/delete his products, i've created 2 stores the first one with domain localhost:8080 and second one is storeone.localhost:8080 as documentation said in Kentico Doc URL, i can open first site with no problem but when i tried to switch to second Site it gives me Bad Request - Invalid Hostname .. can any one help me in this?? .. also i would appreciate it if any one help me on how to extract product data using Kentico API's as documentation provide me only with updating/modifying/removing data from database and i want to know how to display it with it's attachments like images pdf that i've uploaded it.

推荐答案

最好的方法是使用两个不同的端口.原因是IIS默认情况下绑定到端口80.因此,我要做的是将一个站点保留在80,然后在另一个站点进行说2.在IIS中进行这些绑定,然后转到Kentico,然后将第二个站点添加到localhost: 2比:8080.端口号冲突. Kentico和IIS感到困惑",不知道该使用哪个.在同一端口上运行的唯一方法是在Kentico中启动和停止站点.

The best approach is to use two different ports. The reason for this is IIS is by default bound to port 80. So what I'd do is leave one site at 80 and do another at say 2. Make these bindings in IIS then go to Kentico and add your second site at localhost:2 vs. :8080. There's a conflict with port numbers. Kentico and IIS are "confused" and don't know which one to serve up. The only way it will work with the same port is to start and stop sites within Kentico.

这篇关于在Kentico中创建多个站点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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