配置域名:
1.在windows系统文件中配置hosts,
添加127.0.0.1 www.nhn-test.com
2.在Apache配置文件中去掉
conf/extra/httpd-vhosts.conf 前面的注解,即可引用httpd-vhosts.conf文件
3.在httpd-vhosts.conf中加入
<VirtualHost *:80>
DocumentRoot "E:\myWorkplays\hangame-template-master_hangame-template-master\src\main\webapp\WEB-INF\jsp"
ServerName www.nhn-test.com
</VirtualHost>
即可通过http://www.nhn-test.com:8080/hangame-template/page?name=t 进行访问
出现问题:
Invalid command 'Order', perhaps misspelled or defined by a module not included in the server config
开始配置出现上面的报错信息
解决办法:
把#LoadModule access_compat_module modules/mod_access_compat.so
前面改成:
LoadM