編輯 ports.conf (依現有環境可能放在不一樣的檔名,如 httpd.conf 或是 apache2.conf)
# vi /etc/apache2/ports.conf

找到以下設定
Listen 80

修改成
Listen 0.0.0.0:80
Listen 0.0.0.0:443

重啟 apache
# systemctl restart apache2
 

arrow
arrow
    創作者介紹
    創作者 helloworld 的頭像
    helloworld

    Hello World

    helloworld 發表在 痞客邦 留言(0) 人氣()