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

Wrong domain redirect #70

Open GreathostRo opened 2 years ago

GreathostRo commented 2 years ago

Hi,

I just installed VDDoS on the CloudLinux operating system, Webserver LiteSpeed, cPanel control panel and I have a problem.

I configured a single domain for testing and have the following configuration in the /vddos/conf.d/website.conf file: imoby.ro http://127.0.0.1:60100 http://212.81.56.110:80 no no no no imoby.ro https://127.0.0.1:60101 https://212.81.56.110:443 no captcha /var/cpanel/ssl/apache_tls/imoby.ro/combined /var/cpanel/ssl/apache_tls/imoby.ro/ combined

And in the .htaccess file from the imoby.ro domain I put the following: RewriteCond% {HTTP}! On RewriteRule ^ (. *) $ Http://127.0.0.1:60100/$1 [P, E = Proxy-Host: imoby.ro]

RewriteCond% {HTTPS} on RewriteRule ^ (. *) $ Https://127.0.0.1:60101/$1 [P, E = Proxy-Host: imoby.ro]

The redirect works ok, the problem is that instead of redirecting to the domain imoby.ro redirects to another domain hosted on the same server, namely a24.ro

I do not understand where the problem is and how I could solve it, the ip 212.81.56.110 is used as shared for several sites, I suspect that it also works on servers with shared VDDoS accounts.

Please help me, i really like VDDoS and i want to test it. Thank you!