![mac os x apache server root mac os x apache server root](http://alanhou.org/homepage/wp-content/uploads/2013/01/mac-xampp-interface.png)
![mac os x apache server root mac os x apache server root](https://www.howtogeek.com/wp-content/uploads/2018/01/login-options.png)
lynx: Can't access startfile alisamii at alisamii in ~ $ lynx Looking up 127.0.0.1 Making HTTP connection to 127.0.0.1 Alert!: Unable to connect to remote host. telnet: connect to address 127.0.0.1: Connection refused telnet: Unable to connect to remote host alisamii at alisamii in ~ $ lynx Looking up localhost Making HTTP connection to localhost Alert!: Unable to connect to remote host.
![mac os x apache server root mac os x apache server root](https://www.mamp.info/images/free-mamp.png)
telnet: connect to address fe80::1: Connection refused telnet: Unable to connect to remote host alisamii at alisamii in ~ $ telnet 127.0.0.1 80 Trying 127.0.0.1. telnet: connect to address 127.0.0.1: Connection refused Trying fe80::1. telnet: connect to address ::1: Connection refused Trying 127.0.0.1. #allow access to the Hosts directory where your sites are Options Indexes FollowSymLinks MultiViews AllowOverride All #you could configure the following to only allow access from localhost Order allow,deny Allow from all #get the server name from the Host: header UseCanonicalName Off VirtualDocumentRoot /Volumes/sites/%0/ # The first VirtualHost section is used for all requests that do not # match a ServerName or ServerAlias in any block. # NameVirtualHost *:80 # VirtualHost example: # Almost any Apache directive may go into a VirtualHost container. # You may use the command line option '-S' to verify your virtual host # configuration. # Please see the documentation at # for further details before you try to setup virtual hosts.
![mac os x apache server root mac os x apache server root](https://i.pinimg.com/originals/e3/e3/1f/e3e31f54d52cfa4f05489efae6edc6e0.png)
This is indicated by the asterisks in the directives below. Most configurations # use only name-based virtual hosts so the server doesn't need to worry about # IP addresses. Мой файл nf выглядит следующим образом: # Virtual Hosts # If you want to maintain multiple domains/hostnames on your # machine you can setup VirtualHost containers for them. Файл моих хостов довольно простой: # Host Database # localhost is used to configure the loopback interface # when the system is booting.