Registrations: Open.
Please register here.

Not Found ... VirtualHost not working

All MAMP discussions around troubleshooting and anything related to MAMP. Be as detailed as possible here when posting an issue.
Post Reply
Posts: 1
Joined: Tue Mar 02, 2021 10:11 am

Not Found ... VirtualHost not working

Post by Medienopfer98 »

I try to setup local domains for testing. I set it in my /etc/hosts with and setup the virtual host in httpd.conf. But when I call url i get:

Not found.
The requested URL was not found on this server.

I also uncomment Include /Applications/MAMP/conf/apache/extra/httpd-vhosts.conf. And I also checked the Document Root. It is the same as said in phpinfo, when i open the page dirct with the open button in mamp.

Is it possible that my mamp does not use this httpd.conf? Because when i delete everything from it and restart, mamp restarts without problems. I just dont know what can i do now. All manuals/blogs say the same thing, and i did it. But it does not work.

You can only update Apache files from MAMP's templates File -> Open Template. Updating the files directly will not save them and will get overwritten. Also, it may not apply to you but see viewtopic.php?f=3&t=40
Post Reply