B
B
BarneyGumble2016-10-20 18:59:58
MAMP
BarneyGumble, 2016-10-20 18:59:58

How to set domains for sites in MAMP?

Good afternoon
. I use MAMP Pro as a web server on my Mac locally.
All domains that are created in MAMP are available by default at the URL localhost:8888/site.loc
What do I need to do to start working with addresses like site.loc
I understand that this is a noob question, but I would be very grateful if you could describe in detail step by step what needs to be done

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Bukreev, 2016-10-20
@BarneyGumble

Everything is easy, but I don't remember how
1) Googled how to disable apache inside macOS, because I don't remember the commands. After that, it seems like you need to restart the Mac.
2) It is necessary to register in the hosts url, which you reserve for your project
3) It is necessary to find the line in mamp/conf/apache/httpd.conf

Include /Applications/MAMP/conf/apache/extra/httpd-vhosts.conf
and uncomment
4) Write the following things to the mamp/conf/apache/extra/httpd-vhosts.conf file: The
second line means the path to the index file (the root of your project)
refer to the project
Like everything, but could miss something.
Don't forget to restart the server after changing the above files

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question