大佬教程收集整理的这篇文章主要介绍了同域内的 Nginx 重定向,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我有一个在 tomcat 上运行的应用程序服务器。前面有一个Nginx代理,配置如下:
server {
Listen 443 ssl;
server_name example.net;
access_log /var/log/Nginx/example.net.ssl.access.log;
error_log /var/log/Nginx/example.net.ssl.error.log;
ssl_certificate /etc/letsencrypt/live/example.net/cert.pem;
ssl_certificate_key /etc/letsencrypt/live/example.net/privkey.pem;
LOCATIOn / {
proxy_set_header X-ForWARDed-Host $host;
proxy_set_header X-ForWARDed-Server $host;
proxy_set_header X-ForWARDed-For $proxy_add_x_forWARDed_for;
proxy_pass http://localhost:8090;
}
}
我正在尝试配置从 @H_262_9@example.net 到 @H_262_9@example.net/test/page 的重定向,以便任何请求 @H_262_9@example.net 的用户> 将被重定向到 @H_262_9@example.net/test/page。
我尝试使用 @H_262_9@return 和 @H_262_9@rewrite。还把@H_262_9@proxy_pass改成了需要的页面,例如:
proxy_pass http://localhost:8090/test/page;
所有这些尝试都没有成功。我真的很感激任何建议或解决方案。谢谢!
您需要将请求重定向到您提到的 URL。添加这个:
PdfPrintSetTings pdfSetTings = new PdfPrintSetTings
{
BACkgroundsEnabled = false,HeaderFooterEnabled = true,HeaderFooterUrl = "some url String",HeaderFootertitle = "some title String "
};
cef.PrintToPdfAsync(filename,pdfSetTings).Wait();
以上是大佬教程为你收集整理的同域内的 Nginx 重定向全部内容,希望文章能够帮你解决同域内的 Nginx 重定向所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。