我是新來的Mac,但使用Ubuntu的發展很長一段時間。我知道如何在Ubuntu中創建虛擬主機,但不知道Mac。我創建了hosts
條目,如下所示:如何創建MAMP虛擬主機?
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost mysite.loc
255.255.255.255 broadcasthost
::1 localhost
但是接下來要做什麼?
對我來說,它只是說「它的作品」,沒有別的出現。爲什麼現在不參考正確的文件夾? :o – trainoasis
關於MAMP的一般配置,Apache端口應該設置爲80,才能使此配置工作 – byroncorrales
爲我工作。唯一的一點是,在訪問虛擬主機時,請不要忘記提及端口。例如。如果您的站點名稱是myproj,那麼請通過http:// myproj:8888 /訪問此,其中,8888是端口號。 – Pupil