Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - MIND Solutions

Pages: [1]
1
Apache / Re: Apache Vhosts getting rebuilt automatically everynight
« on: January 24, 2022, 09:22:25 PM »
I repeat: You do NOT clone, copy, move, whatever, between
/usr/local/cwpsrv/htdocs/resources/conf/web_servers/vhosts/httpd
and
/usr/local/cwpsrv/htdocs/resources/conf/web_servers/vhosts/httpd/php-fpm

As for the stpl. If both the tpl and stpl templates has the same names, then no worries. The system will automatically read the stpl file when a client tries to access the website with https:// or if you told the tpl file to redirect to https:// in which case it will automatically force clients to access the website with https:// and the system will automatically read the stpl file.

Well, I will just add that the only way to get this resolved was by copying the file like I said. By doing exactly what you said is wrong - I made a fix.


2
Apache / Re: Apache Vhosts getting rebuilt automatically everynight
« on: January 19, 2022, 10:10:58 PM »
Because the system is not showing images I post.

pasteboard dot co/nnck8jFzO08x dot png

Take a look if you can figure it out. No matter which template I edit it does not show up in this menu, CWP is not reading it out for some reason.

Then how did you get "default_httpd_php-fpm_snipeit" in there?
To add a template to that exact list, you will have to add it to this path:
Code: [Select]
/usr/local/cwpsrv/htdocs/resources/conf/web_servers/vhosts/httpd/php-fpmYou will have to add a tpl and a stpl file for the ssl.

I simply duplicated the .tpl and .stpl templates in the httpd folders and moved both to the php-fpm folder. But only the .tpl one is showing in my interface, not the .stpl one.

See below.

Code: [Select]
[root@opal php-fpm]# ls -ll
total 64
-rw-r--r-- 1 root root 1291 Jan 19 02:36 all_methods_snipeit.stpl
-rw-r--r-- 1 root root 1126 Jan 19 02:36 all_methods_snipeit.tpl
-rw-r----- 1 root root 3654 Jun  9  2021 all_methods.stpl
-rw-r----- 1 root root 2863 Jun  9  2021 all_methods.tpl
-rw-r--r-- 1 root root 1540 Jan 19 02:36 default_httpd-php-fpm_snipeit.stpl
-rw-r--r-- 1 root root 1376 Jan 19 02:36 default_httpd_php-fpm_snipeit.tpl
-rw-r----- 1 root root 3769 Jun 16  2020 default.stpl
-rw-r----- 1 root root 2978 Jun 16  2020 default.tpl
-rw-r----- 1 root root  643 Jun  6  2019 suspend.stpl
-rw-r----- 1 root root  494 Jun  6  2019 suspend.tpl
-rw-r----- 1 root root 3806 Jul 27 18:43 timeout_30-minutes.stpl
-rw-r----- 1 root root 3013 Jul 27 18:43 timeout_30-minutes.tpl
-rw-r----- 1 root root 3804 Jul 27 18:43 timeout_5-minutes.stpl
-rw-r----- 1 root root 3011 Jul 27 18:43 timeout_5-minutes.tpl
-rw-r----- 1 root root 3806 Jul  6  2021 timeout_60-minutes.stpl
-rw-r----- 1 root root 3013 Jul  6  2021 timeout_60-minutes.tpl
[root@opal php-fpm]#

3
Apache / Re: Apache Vhosts getting rebuilt automatically everynight
« on: January 19, 2022, 05:46:04 PM »
Because the system is not showing images I post.

pasteboard dot co/nnck8jFzO08x dot png

Take a look if you can figure it out. No matter which template I edit it does not show up in this menu, CWP is not reading it out for some reason.

4
Apache / Re: Apache Vhosts getting rebuilt automatically everynight
« on: January 19, 2022, 02:23:40 AM »
Hey man, let me share my findings:

/usr/local/cwpsrv/htdocs/resources/conf/web_servers/vhosts/httpd - you clone a file of choice here and then copy to /usr/local/cwpsrv/htdocs/resources/conf/web_servers/vhosts/php-fpm - this will make the cloned template of your choice appear in the menu on my screenshot under the php-fpm section.



Check these folders. I pointed out my template with mouse pointer.

After that http will work but not the https.

Pages: [1]