永久黄网站色视频免费直播,yy6080三理论日本中文,亚洲无码免费在线观看视频,欧美日韩精品一区二区在线播放

Board logo

標(biāo)題: [求助] wdcp管理后臺如何啟用https [打印本頁]

作者: zorbqg02874    時間: 2018-12-5 17:35     標(biāo)題: wdcp管理后臺如何啟用https

通過http訪問wdcp管理后臺(ip:port)實在是太不安全了。

希望能夠為wdcp管理后臺也開啟https,而不僅僅是web服務(wù)上https。

不求有一鍵傻瓜式腳本,證書由用戶自己配置就行,總得給個方法啊。

我已經(jīng)嘗試了利用nginx反向代理來實現(xiàn),還是有些覆蓋不到的情況:
  1. location /login/ {
  2.                 proxy_set_header Host $host;
  3.                 proxy_set_header X-Real-IP $remote_addr;
  4.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  5.                 proxy_pass http://127.0.0.1:8080/login/;
  6. }
  7. location /static/ {
  8.                 proxy_set_header Host $host;
  9.                 proxy_set_header X-Real-IP $remote_addr;
  10.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  11.                 proxy_pass http://127.0.0.1:8080/static/;
  12. }
  13. location /index/ {
  14.                 proxy_set_header Host $host;
  15.                 proxy_set_header X-Real-IP $remote_addr;
  16.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  17.                 proxy_pass http://127.0.0.1:8080/index/;
  18. }
  19. location /admin/ {
  20.                 proxy_set_header Host $host;
  21.                 proxy_set_header X-Real-IP $remote_addr;
  22.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  23.                 proxy_pass http://127.0.0.1:8080/admin/;
  24. }
  25. location /err/ {
  26.                 proxy_set_header Host $host;
  27.                 proxy_set_header X-Real-IP $remote_addr;
  28.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  29.                 proxy_pass http://127.0.0.1:8080/err/;
  30. }
  31. location /ftp/ {
  32.                 proxy_set_header Host $host;
  33.                 proxy_set_header X-Real-IP $remote_addr;
  34.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  35.                 proxy_pass http://127.0.0.1:8080/ftp/;
  36. }
  37. location /layout/ {
  38.                 proxy_set_header Host $host;
  39.                 proxy_set_header X-Real-IP $remote_addr;
  40.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  41.                 proxy_pass http://127.0.0.1:8080/layout/;
  42. }
  43. location /member/ {
  44.                 proxy_set_header Host $host;
  45.                 proxy_set_header X-Real-IP $remote_addr;
  46.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  47.                 proxy_pass http://127.0.0.1:8080/member/;
  48. }
  49. location /mysql/ {
  50.                 proxy_set_header Host $host;
  51.                 proxy_set_header X-Real-IP $remote_addr;
  52.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  53.                 proxy_pass http://127.0.0.1:8080/mysql/;
  54. }
  55. location /safe/ {
  56.                 proxy_set_header Host $host;
  57.                 proxy_set_header X-Real-IP $remote_addr;
  58.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  59.                 proxy_pass http://127.0.0.1:8080/safe/;
  60. }
  61. location /site/ {
  62.                 proxy_set_header Host $host;
  63.                 proxy_set_header X-Real-IP $remote_addr;
  64.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  65.                 proxy_pass http://127.0.0.1:8080/site/;
  66. }
  67. location /sys/ {
  68.                 proxy_set_header Host $host;
  69.                 proxy_set_header X-Real-IP $remote_addr;
  70.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  71.                 proxy_pass http://127.0.0.1:8080/sys/;
  72. }
  73. location /set/ {
  74.                 proxy_set_header Host $host;
  75.                 proxy_set_header X-Real-IP $remote_addr;
  76.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  77.                 proxy_pass http://127.0.0.1:8080/set/;
  78. }
復(fù)制代碼
求官方給個方法啊。




歡迎光臨 WDlinux官方論壇 (http://www.fsowen.com/bbs/) Powered by Discuz! 7.2