Magento 2 – what is the proper way to update vhosts file to add magento 2 website locally as eduk.dev or some arbitrary URL, in MAMP 7.4

I have Mamp 7.4, and I want to install my magento 2 on a URL like magento.dev (specifically I want it to be eduk.dev). MAMP version is 7.4. I update the hosts file with 127.0.0.1 eduk.dev, then I set this in appache httpd.conf file :

Include /Applications/MAMP/conf/apache/extra/httpd-vhosts.conf

and I set this in httpd-vhosts.conf:

<VirtualHost *:8888>
    ServerName eduk.dev
    DocumentRoot "/Applications/MAMP/htdocs/eduk2"

    <Directory "/Applications/MAMP/htdocs/eduk2/pub">
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>

but it won’t work, I don’t get anything on eduk.dev.