Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable https mode (mode ssl from panel) #10

Open
camlafit opened this issue Jul 19, 2024 · 3 comments
Open

Disable https mode (mode ssl from panel) #10

camlafit opened this issue Jul 19, 2024 · 3 comments

Comments

@camlafit
Copy link
Contributor

Hi

Looks interessting to disable https_option to all domain type.
As nginx is a front with ssl feature, alternc don't need to manage any ssl state.

Check any regression about template *-both use

@camlafit
Copy link
Contributor Author

camlafit commented Jul 19, 2024

To prevent any regression

  • on postint copy 3.5 both template as undefined template (in case of meta template as php-fpm)
  • copy all both template to without version
  • set https_option to false on all domain_type
  • set all subdomains with https option as empty value
  • regenerate all apache conf

@camlafit
Copy link
Contributor Author

find /etc/alternc/templates -path *apache2* -iname "*-both.conf" -exec bash -c 'cp $0 ${0/-both/}' {} \;

@camlafit
Copy link
Contributor Author

camlafit commented Jul 19, 2024

Save queries to run during postrm select CONCAT("UPDATE domaines_type SET has_https_option = 1 WHERE name='",name,"';") from domaines_type where has_https_option = 1;
and run on post

UPDATE domaines_type SET has_https_option=0;
UPDATE sub_domaines SET https="" , web_action="UPDATE" where https <> "";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant