绑定host一般分为windows和linux下两种情况. windows下,首先打开host文件,其操作步骤 ,打开 C:\Windows\System32\Drivers\etc\hosts的文件(一般为文本方式),然后在下面这些行的后面添加你所要绑定的ip和域名. # localhost name resolution is handled within DNS itself. # 127.0.0.1 localhost # ::
<VirtualHost *:80> DocumentRoot "/Users/xuxu/www" ServerName localhost <Directory "/Users/xuxu/www"> Options Indexes FollowSymLinks AllowOverride All Order deny,allow Allow from all </Directory></VirtualHost> &l