因此,我目前有sitea.com
设置,并且已经积极运行了一年多。现在我想添加siteb.com
,siteb.com
也会有一个博客,名为siteb.com/blog
有人能帮我吗
以下是我当前的配置:
app.py
:
@app.route('/')
def home():
'''
home() will show the homepage of my website sitea.com
'''
return render_template('index.html')
问题是sitea.com
和siteb.com
都指向同一个服务器,所以如果我尝试访问每一个服务器,它将仅将其拉到现有的sitea.com
站点,但我希望通过flask使其基于域名
我该怎么做?我假设需要对flask配置中现有的sitea.com
进行更改,同时添加另一个siteb.com
更改
有人能帮我吗
谢谢
一种可能的情况是,您可以分割站点url并在不同的域中呈现。比如:
相关问题 更多 >
编程相关推荐