Invalid http_host header

前端 未结 3 680
Happy的楠姐
Happy的楠姐 2020-12-13 16:31

I am trying to develop a website using Django framework and launched using DigitalOcean.com and deployed the necessary files into django-project.

I had to include st

3条回答
  •  无人及你
    2020-12-13 17:11

    In your project settings.py file,set ALLOWED_HOSTS like this :

    ALLOWED_HOSTS = ['62.63.141.41', 'namjoosadr.com']
    

    and then restart your apache. in ubuntu:

    /etc/init.d/apache2 restart
    

提交回复
热议问题