AllowOverride None#Allow open access:Require all granted
ServerAdmin aidaogoDocumentRoot /home/www/aidaogo/wwwServerName dev.aidaogo.comServerAlias aidaogoErrorLog logs/dev.aidaogo.com-error_logCustomLog logs/dev.aidaogo.com-access_log common
Options Indexes FollowSymLinks AllowOverride None Require all granted
可以的, hosts 127.0.0.1 www.test.com
apache conf
DocumentRoot "D:/web/www" ServerName www.test.com Options FollowSymLinks Indexes AllowOverride All Order deny,allow Allow from 127.0.0.1 Deny from all Require all granted