duy13 / vDDoS-Protection

Welcome to vDDoS, a HTTP(S) DDoS Protection Reverse Proxy. Thank you for using!
https://vddos.voduy.com
482 stars 140 forks source link

redirect doesnt work anymore? #45

Closed szkuta closed 5 years ago

szkuta commented 5 years ago

tried to add the following lines into /vddos/conf.d/redirect.conf /vddos/conf.d/domain/pimmelbande.fun/redirect.conf /vddos/conf.d/domain/www.pimmelbande.fun/redirect.conf

if ($schemedomain = "http://pimmelbande.fun") { return 301 https://pimmelbande.fun$request_uri; } if ($schemedomain = "http://www.pimmelbande.fun") { return 301 https://pimmelbande.fun$request_uri; } if ($schemedomain = "https://www.pimmelbande.fun") { return 301 https://pimmelbande.fun$request_uri; }

but doesnt work

try it: https://www.pimmelbande.fun/

duy13 commented 5 years ago

+The redirect is no longer configured at /vddos/conf.d/redirect.conf +/vddos/conf.d/redirect.conf is currently just a template +Please:

  1. return /vddos/conf.d/redirect.conf to the prototype version
  2. Remove rm -rf /vddos/conf.d/domain
  3. vddos restart
  4. config redirect for each website in its directory (/vddos/conf.d/domain/pimmelbande.fun/redirect.conf)
  5. vddos reload
szkuta commented 5 years ago

yes but this method doesnt work for me^^ i already tried that

szkuta commented 5 years ago

found my mistake anyway thanks for your support