File manager - Edit - /usr/local/cpanel/install/RebuildServiceProxyApacheConf.pm
Back
package Install::RebuildServiceProxyApacheConf; # Copyright 2026 WebPros International, LLC # All rights reserved. # copyright@cpanel.net http://cpanel.net # This code is subject to the cPanel license. Unauthorized copying is prohibited. use cPstrict; use parent qw( Cpanel::Task ); use Cpanel::ConfigFiles::Apache (); use Cpanel::ServerTasks (); our $VERSION = '1.0'; use constant DO_ONCE_FLAG => q[cpanel-54005-rebuild-service-proxy-apache-conf]; =encoding utf8 =head1 NAME Install::RebuildServiceProxyApacheConf - Rebuild Apache config for service proxy subdomain changes. =head1 DESCRIPTION The CPANEL-54005 service proxy fix changes the Perl generator that writes Apache service proxy vhost blocks. Existing systems keep the old generated blocks until F<httpd.conf> is rebuilt, so this task queues one rebuild and restart after upgrade. =over 1 =item Type: Bugfix =item Frequency: once =item EOL: never =back =cut exit __PACKAGE__->runtask() unless caller; sub new ($proto) { my $self = $proto->SUPER::new; $self->set_internal_name('rebuild_service_proxy_apache_conf'); $self->add_dependencies(qw( taskqueue )); return $self; } =head2 perform() Queues an Apache configuration rebuild and restart once on upgraded systems. =cut sub perform ($self) { $self->run_sub_once( version => DO_ONCE_FLAG, code => sub { return 1 if $ENV{'CPANEL_BASE_INSTALL'}; return 1 if $self->dnsonly(); return 1 if !Cpanel::ConfigFiles::Apache->is_installed(); Cpanel::ServerTasks::queue_task( ['ApacheTasks'], 'build_apache_conf', 'apache_restart' ); return 1; }, ); return 1; } 1;
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Generation time: 0.03 |
proxy
|
phpinfo
|
Settings