1
我想改變我的MAMP實例的ServerName屬性,但它似乎沒有響應任何我做的事情。更改MAMP ServerName
我編輯了httpd.conf文件(/Applications/MAMP/conf/apache/httpd.conf)的一部分,這一點:
#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
#
#ServerName localhost:8888
ServerName slimproject.dev
這一點,我已經停止後,開始我的服務器。
然而,它仍然是應對http://localhost:8888 當我去http://slimproject.dev它會告訴我「找不到服務器」
什麼是grep的^聽/應用程序/ MAMP/conf目錄/阿帕奇/ httpd.conf'和'主機slimproject.dev的'輸出| grep地址' –
第一條命令:監聽8888 ---第二條命令:slimproject.dev的地址爲127.0.53.53 –