Author Topic: WebServers Vhost Template Editor BUG!  (Read 4818 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
WebServers Vhost Template Editor BUG!
« on: September 12, 2020, 01:05:44 AM »
Hey,

i want to report a bug :D

if i clone a template over the WebServers Template Editor

it doesnt clone correct -> i Marked the spot in RED!

the original file is correct.

AND pls, can u add a method without ssh to add a template to PHP-FPM?
if i clone, it just for fastgci i must manually move it to the php-fpm folder via cli:)

server {
   listen %ip%:%nginx_port% ssl http2;
   server_name %domain_idn% %alias_idn%;
   root %docroot%;
   index index.php index.html index.htm;
   access_log /usr/local/apache/domlogs/%domain%.bytes bytes;
   access_log /usr/local/apache/domlogs/%domain%.log combined;
   error_log /usr/local/apache/domlogs/%domain%.error.log error;

   ssl_certificate      %ssl_cert_path%/%domain%.bundle;
   ssl_certificate_key  %ssl_key_path%/%domain%.key;
   ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
   ssl_ciphers EECDH+ECDSA+AESGCM:EECDH+aRSA+AESGCM:EECDH+ECDSA+SHA384:EECDH+ECDSA+SHA256:EECDH+aRSA+SHA384:EECDH+aRSA+SHA256:EECDH+aRSA!RC4:EECDH:!RC4:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!SRP:!DSS;
   ssl_prefer_server_ciphers   on;

   ssl_session_cache   shared:SSL:10m;
   ssl_session_timeout 60m;

   location / {

      add_header Strict-Transport-Security "max-age=31536000";
      add_header X-Content-Type-Options nosniff;

      location ~.*\.(%proxy_extensions%)$ {         
         expires max;
      }
      
      location ~ [^/]\.php(/|$) {
         fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
         if (!-f $document_root$fastcgi_script_name) {
            return  404;
         }

         fastcgi_pass    ꣫end_fcgi%;
         fastcgi_index   index.php;
         include         /etc/nginx/fastcgi_params;
      }

   }

   location ~* "/\.(htaccess|htpasswd)$" {deny all;return 404;}

   disable_symlinks if_not_owner from=%docroot%;

   location /.well-known/acme-challenge {
      default_type "text/plain";
      alias /usr/local/apache/autossl_tmp/.well-known/acme-challenge;
   }
}

server {
   listen %ip%:%nginx_port% ssl http2;   
   server_name webmail.%domain_idn%;

   access_log /usr/local/apache/domlogs/%domain%.bytes bytes;
   access_log /usr/local/apache/domlogs/%domain%.log combined;
   error_log /usr/local/apache/domlogs/%domain%.error.log error;

   ssl_certificate      %ssl_cert_path%/%domain%.bundle;
   ssl_certificate_key  %ssl_key_path%/%domain%.key;
   ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
   ssl_ciphers EECDH+ECDSA+AESGCM:EECDH+aRSA+AESGCM:EECDH+ECDSA+SHA384:EECDH+ECDSA+SHA256:EECDH+aRSA+SHA384:EECDH+aRSA+SHA256:EECDH+aRSA!RC4:EECDH:!RC4:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!SRP:!DSS;
   ssl_prefer_server_ciphers   on;

   ssl_session_cache   shared:SSL:10m;
   ssl_session_timeout 60m;

   location / {
      proxy_pass  http://127.0.0.1:2095;
      include proxy.inc;
   }

   location ~ /\.ht    {deny all;}
   location ~ /\.svn/  {deny all;}
   location ~ /\.git/  {deny all;}
   location ~ /\.hg/   {deny all;}
   location ~ /\.bzr/  {deny all;}

   disable_symlinks if_not_owner from=%docroot%;

   location /.well-known/acme-challenge {
      default_type "text/plain";
      alias /usr/local/apache/autossl_tmp/.well-known/acme-challenge;
   }
}

server {
   listen %ip%:%nginx_port% ssl http2;   
   server_name mail.%domain_idn%;

   access_log /usr/local/apache/domlogs/%domain%.bytes bytes;
   access_log /usr/local/apache/domlogs/%domain%.log combined;
   error_log /usr/local/apache/domlogs/%domain%.error.log error;

   ssl_certificate      %ssl_cert_path%/%domain%.bundle;
   ssl_certificate_key  %ssl_key_path%/%domain%.key;
   ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
   ssl_ciphers EECDH+ECDSA+AESGCM:EECDH+aRSA+AESGCM:EECDH+ECDSA+SHA384:EECDH+ECDSA+SHA256:EECDH+aRSA+SHA384:EECDH+aRSA+SHA256:EECDH+aRSA!RC4:EECDH:!RC4:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!SRP:!DSS;
   ssl_prefer_server_ciphers   on;

   ssl_session_cache   shared:SSL:10m;
   ssl_session_timeout 60m;

   location / {
      proxy_pass  http://127.0.0.1:2095;
      include proxy.inc;
   }

   location ~ /\.ht    {deny all;}
   location ~ /\.svn/  {deny all;}
   location ~ /\.git/  {deny all;}
   location ~ /\.hg/   {deny all;}
   location ~ /\.bzr/  {deny all;}

   disable_symlinks if_not_owner from=%docroot%;

   location /.well-known/acme-challenge {
      default_type "text/plain";
      alias /usr/local/apache/autossl_tmp/.well-known/acme-challenge;
   }
}

server {
   listen %ip%:%nginx_port% ssl http2;   
   server_name cpanel.%domain_idn%;

   access_log /usr/local/apache/domlogs/%domain%.bytes bytes;
   access_log /usr/local/apache/domlogs/%domain%.log combined;
   error_log /usr/local/apache/domlogs/%domain%.error.log error;

   ssl_certificate      %ssl_cert_path%/%domain%.bundle;
   ssl_certificate_key  %ssl_key_path%/%domain%.key;
   ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
   ssl_ciphers EECDH+ECDSA+AESGCM:EECDH+aRSA+AESGCM:EECDH+ECDSA+SHA384:EECDH+ECDSA+SHA256:EECDH+aRSA+SHA384:EECDH+aRSA+SHA256:EECDH+aRSA!RC4:EECDH:!RC4:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!SRP:!DSS;
   ssl_prefer_server_ciphers   on;

   ssl_session_cache   shared:SSL:10m;
   ssl_session_timeout 60m;

   location / {
      proxy_pass  https://127.0.0.1:2083;
      include proxy.inc;
   }

   location /pma {
      proxy_pass  https://127.0.0.1:2031;
      include proxy.inc;
   }

   location /roundcube {
      proxy_pass  https://127.0.0.1:2031;
      include proxy.inc;
   }

   location ~ /\.ht    {deny all;}
   location ~ /\.svn/  {deny all;}
   location ~ /\.git/  {deny all;}
   location ~ /\.hg/   {deny all;}
   location ~ /\.bzr/  {deny all;}

   disable_symlinks if_not_owner from=%docroot%;

   location /.well-known/acme-challenge {
      default_type "text/plain";
      alias /usr/local/apache/autossl_tmp/.well-known/acme-challenge;
   }
}

Offline
*
Re: WebServers Vhost Template Editor BUG!
« Reply #1 on: September 15, 2020, 10:26:37 AM »
does anybody have the copy/clone bug too? :D

Offline
*
Re: WebServers Vhost Template Editor BUG!
« Reply #2 on: October 09, 2020, 09:29:33 AM »
if the issue continues in the latest version you should report issues to cwp team
https://control-webpanel.com/contact
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.

Offline
***
Re: WebServers Vhost Template Editor BUG!
« Reply #3 on: January 11, 2022, 10:48:30 PM »
does anybody have the copy/clone bug too? :D
yes

Replicate: On AdminCP, Go to WebServers Conf Editor -> httpd -> Clone default.tpl of vhosts/httpd/php-fpm -> name it anything and save. Open it again by clicking edit on it, go to line 50. “%ba” is missing and is replaced with º