纯HTML项目部署在NGINX,不用TOMCAT

来源:互联网 发布:官方mac os 10.9.5 编辑:程序博客网 时间:2024/06/14 01:49

1、nginx中的配置:
location / {
root /java/tomcatWeb/static_test;# 站点根目录
index index.html;#主页
}

2、项目目录结构:
路径:/java/tomcatWeb/static_test
|–css
|–img
|–js
index.html
3、数据通过js发送AJAX获取

原创粉丝点击