文章来源于网络收集而来,版权归原创者所有,如有侵权请及时联系!
配置例子
server {
listen 80;
server_name localhost;
autoblacklist on;
autoblacklist_size 1024;
autoblacklist_expires 1d;
autoblacklist_limit 30;
location ~ \.cdp {
cpp_load;
cpp_search_path "/usr/local/nginx/app/cpp";
cpp_uri_pattern ".*\.cdpquot;;
cpp_expires 1m;
}
location ~ \.pdp {
py_load;
py_search_path "/usr/local/nginx/app/python";
py_uri_pattern ".*\.pdpquot;;
py_expires 1m;
}
location ~ \.ldp {
lua_load;
lua_package_search_path "/usr/local/nginx/app/lua/?.lua;/usr/local/nginx/app/lua/package/?.lua";
lua_cpackage_search_path "/usr/local/nginx/app/lua/?.so;/usr/local/nginx/app/lua/cpackage/?.so";
lua_uri_pattern ".*\.ldpquot;;
lua_memory_limit 50;
lua_expires 1m;
}
location ~ \.jdp {
java_load;
java_class_path "-Djava.class.path=.:/usr/local/nginx/app/java:/usr/local/nginx/app/java/config-1.4.2.jar:/usr/local/nginx/app/java/jmustache-1.15.jar:/usr/local/nginx/app/java/hi-nginx-java.jar:/usr/local/nginx/app/java/mariadb-java-client-2.7.4.jar:/usr/local/nginx/app/java/mysql-connector-java-8.0.26.jar:/usr/local/nginx/app/java/druid-1.2.6.jar:/usr/local/nginx/app/java/demo.jar";
java_options "-server -d64 -Dconfig.file=/usr/local/nginx/app/java/application.conf";
java_servlet "hi/controller";
java_uri_pattern ".*\.jdpquot;;
java_expires 1m;
java_version 11;
}
location / {
access_log off;
root html;
index index.html index.htm;
}
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论