-
Open hosts file:
$ sudo subl /private/etc/hosts
-
Place the following line at the end of the file:
127.0.0.1 link
-
Open MAMP's vhosts file:
subl /Applications/MAMP/conf/apache/extra/httpd-vhosts.conf
-
Change
NameVirtualHost*:80
settings toNameVirtualHost *:8888
. And add at the end of the file (you can delete the placeholders one):<VirtualHost *:8888> ServerName link DocumentRoot path_to_public_dir SetEnv APPLICATION_ENV "development" <Directory path_to_public_dir> DirectoryIndex index.php AllowOverride All Order allow,deny Allow from all </Directory> </VirtualHost>
-
Restart MAMP
Last active
May 18, 2019 10:12
Virtual Hosts for MAMP
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment