How to Set Up Apache Virtual Host on MacOS

preview_player
Показать описание
Setting up Apache Virtual Host on Your Mac. Basic commands and where directories are found.

Open and edit the httpd file found at
or

Open the file and uncomment the Virtual Host include
or

Add
VirtualHost *:80
DocumentRoot "/Users/username/Sites/foldername"
/VirtualHost

Open and edit the hosts file locate at
/etc/hosts

Add
Рекомендации по теме
Комментарии
Автор

Thank you sir! This is the most simple and easy-to-follow virtualhost setup tutorial. It works, mine didn't even got the 403 error like other tutorials I've seen on youtube. Cheers!

autopilot
Автор

Just if anyone is wondering .local does not work anymore as it is a TLD now. So change it for .localhost in the vhost configuration and host files

JosepCastellsera
Автор

Any idea on where to look for hosting a webiste from my computer? I already have bought the domain. But, I'm not sure how to integrate the apache to the domain.

danielgannage
Автор

Why doesn't work with High Sierra 10.13.6? Frustrating time!

darioantonioli
Автор

May I ask how do you get the Site folder? Is it created on its own while installing something or we need to create manually by ourselves?

cena
Автор

HI there, I am not exactly new to adding virtual hosts from older versions of OSX... but I don't know why I'm getting "This site can’t be reached
phpmyadmin.local’s server IP address could not be found.
Search Google for phpmyadmin local
ERR_NAME_NOT_RESOLVED" error

carnivorewitch
Автор

for some reason this isn't working for me.. I can no longer even get the "It Works!" screen showing.. apache just doesn't seem to be working.. I even undid these steps and still getting "cant be reached" error.. it was working before this, not sure what i did wrong

lennycourvoisier
Автор

It would have been great if you showed the viewer what key you are pressing to Insert (2:17). I have the file up and running but can't edit it. Coming from a PC background, I find MACs unnecessarily awkward and frustrating

bolandshow
Автор

I don't know why i get this "You don't have permission to access / on this server."
This is so frustrating.

Tidaltwist