+ 1

Accessing XAMPP as computer.local

Hello, I have installed XAMPP on my Mac and I can access the website inside htdocs folder from localhost but cannot from [MY COMPUTER NAME].local . How can I make it accessible from [MY COMPUTER NAME].local

28th May 2018, 5:05 AM
Gleb Koval
Gleb Koval - avatar
2 Respuestas
+ 8
I'm not sure if I understand your question correctly. As far as I'm concerned, files that you want to access via the Apache server have to be in htdocs. That is the root of localhost. If you somehow managed to set computer.local as root, it would mean that anyone who has access to the server, has access to all the files on your computer. That probably isn't what you want. Just copy your web projects into htdocs instead of trying to access them by altering the scope of your server.
28th May 2018, 5:17 AM
Hatsy Rei
Hatsy Rei - avatar
+ 3
I just tried changing may computer name to something and then changing it back while restarting the servers and that worked for me. Thank you for replying though. Hatsy Rei, computer.local is the same as localhost however it can be accessed like that by anyone on your local network (basically a replacement for typing in your ip). The program does this automatically and I think I just had some weird glitch where the computer.local didn't update.
28th May 2018, 5:31 AM
Gleb Koval
Gleb Koval - avatar