Virtual host on ubuntu 13.10 and apache 2.4.6

前端 未结 8 1461
迷失自我
迷失自我 2021-01-30 07:09

I have the following problem
My hosts file is as follows:

127.0.0.1       localhost
127.0.1.1       barbala4o-HP-ProBook-4530s
127.0.1.1       mysite.local         


        
8条回答
  •  离开以前
    2021-01-30 07:39

    Just a note for people pulling out their hair about this topic, you'll need to use sudo for all of these settings to take place if you're using an AWS instance.

    sudo a2ensite example.com
    

    Keep in mind you need to do this for even restarting apache. If you don't see your changes taking place, this is likely the culprit.

    sudo service apache2 restart
    

提交回复
热议问题