Back to Question Center
0

Ƙungiyoyin haɓaka na Semalt na sanyi don MAMP suna haifar da sababbin shafuka suna zuwa babban fayil

1 answers:

Ina da MAMP wanda aka shigar a Mac. Me yasa duk lokacin da na kirkiro wani sabon shafi, duk suna zuwa fayil guda ɗaya? A nan ne / sauransu / runduna fayil:

     127. 0. 0. 1 localhost
255. 255 - caqpital of delaware. 255. 255 watsa shirye-shirye
:: 1 localhost
fe80 :: 1% lo0 localhost
127. 0. 0. 1 localhost. funstuff
127. 0. 0. 1 localhost. mysite
127. 0. 0. 1 localhost. oldmysite    

Wannan ita ce mashaidina na httpd-vhosts. conf

     NameVirtualHost *: 8888############ FUN STUFF PAGE ##############
ServerName localhost. funstuffDocumentRoot "/ Aikace-aikace / MAMP / htdocs / funstuff"ServerAlias ​​www. localhost. funstuffServerName localhost. mysiteDocumentRoot "/ Aikace-aikace / MAMP / htdocs / mysite"ServerAlias ​​www. localhost. mysite

#### tsohon mysite ####
ServerName localhost. oldmysiteDocumentRoot "/ Aikace-aikace / MAMP / htdocs / oldmysite / shafuka / oldmysite"ServerAlias ​​www. localhost. oldmysite    

Na sake farawa uwar garken MAMP kuma lokacin da na rubuta: http: // localhost. abin da ake ci: 8888 / , http: // localhost. oldmysite: 8888 ko http: // localhost. mysite: 8888 , duk yana zuwa babban fayil mai ban sha'awa.

February 7, 2018

Apache ba ya bayar da shawarar yin amfani da domains a cikin sanarwar, na samu daga kwarewa cewa za ku sami matsala ta amfani da alama a nan ( * ) kuma kawai bari yankin ya kasance daidai da Sunan Sunan .

Har ila yau, shafin yanar gizo na farko da aka yi amfani dashi yana nuna matsayin tsoho saboda duk lokacin da sunan bai dace daidai da ɗaya daga cikin rundunonin da aka tsara ba. Saboda haka zan bayar da shawarar idan ba ku so abun da ke da nishaɗi don zama shafinku na tsoho, gwada ƙara sabon tsoho na VirtualHost da kuma shafin yanar gizo na blank zuwa ga httpd. conf fayil.

  NameVirtualHost *: 8888# Default Virtual Mai watsa shiri Site - Blank
ServerName localhostDocumentRoot / Aikace-aikace / MAMP / htdocs / tsoho
# Shafin Farko Page
ServerName localhost. funstuffServerAlias ​​www. localhost. funstuffDocumentRoot / Aikace-aikace / MAMP / htdocs / funstuff
# My Site
ServerName localhost. mysiteServerAlias ​​www. localhost. mysiteDocumentRoot / Aikace-aikace / MAMP / htdocs / mysite
# My Old Site
ServerName localhost. oldmysiteServerAlias ​​www. localhost. oldmysiteDocumentRoot / Aikace-aikace / MAMP / htdocs / oldmysite / shafuka / oldmysite