PNG  IHDR* pHYs+ IDATx]n#; cdLb Ǚ[at¤_:uP}>!Usă cag޿ ֵNu`ݼTâabO7uL&y^wFٝA"l[|ŲHLN밪4*sG3|Dv}?+y߉{OuOAt4Jj.u]Gz*҉sP'VQKbA1u\`& Af;HWj hsO;ogTu uj7S3/QzUr&wS`M$X_L7r2;aE+ώ%vikDA:dR+%KzƉo>eOth$z%: :{WwaQ:wz%4foɹE[9<]#ERINƻv溂E%P1i01 |Jvҗ&{b?9g=^wζXn/lK::90KwrюO\!ջ3uzuGv^;騢wq<Iatv09:tt~hEG`v;3@MNZD.1]L:{ծI3`L(÷ba")Y.iljCɄae#I"1 `3*Bdz>j<fU40⨬%O$3cGt]j%Fߠ_twJ;ABU8vP3uEԑwQ V:h%))LfraqX-ۿX]v-\9I gl8tzX ]ecm)-cgʒ#Uw=Wlێn(0hPP/ӨtQ“&J35 $=]r1{tLuǮ*i0_;NƝ8;-vݏr8+U-kruȕYr0RnC]*ެ(M:]gE;{]tg(#ZJ9y>utRDRMdr9㪩̞zֹb<ģ&wzJM"iI( .ꮅX)Qw:9,i좜\Ԛi7&N0:asϓc];=ΗOӣ APqz93 y $)A*kVHZwBƺnWNaby>XMN*45~ղM6Nvm;A=jֲ.~1}(9`KJ/V F9[=`~[;sRuk]rєT!)iQO)Y$V ی ۤmzWz5IM Zb )ˆC`6 rRa}qNmUfDsWuˤV{ Pݝ'=Kֳbg,UҘVz2ﴻnjNgBb{? ߮tcsͻQuxVCIY۠:(V뺕 ٥2;t`@Fo{Z9`;]wMzU~%UA蛚dI vGq\r82iu +St`cR.6U/M9IENDB`#!/usr/local/cpanel/3rdparty/bin/perl # cpanel - scripts/primary_virtual_host_migration Copyright 2022 cPanel, L.L.C. # All rights reserved. # copyright@cpanel.net http://cpanel.net # This code is subject to the cPanel license. Unauthorized copying is prohibited #---------------------------------------------------------------------- # NOTE: This script recreates the primary_virtual_hosts.conf file from # httpd.conf. THIS IS BACKWARDS from the normal order of things; ordinarily, # we rebuild httpd.conf from primary_virtual_hosts.conf (and userdata); # however, this script is around for migration and repair. use strict; use warnings; use Cpanel::Locale (); use Cpanel::Config::Httpd::IpPort (); use Cpanel::HttpUtils::Vhosts::Primary (); use Cpanel::HttpUtils::Vhosts::Primary::Extract (); sub script { my $pvh_file = $Cpanel::ConfigFiles::APACHE_PRIMARY_VHOSTS_FILE; if ( -f $pvh_file && !-z _ ) { my $locale = Cpanel::Locale->get_handle(); die $locale->maketext( 'The primary virtual hosts file ([_1]) already exists. If you really want to rebuild this file from [asis,Apache]’s configuration, you must delete this file first. [output,strong,Unless you are doing a migration or a repair~, however~, this is probably not what you want to do.] Ordinarily, [asis,Apache]’s configuration is built from the primary virtual hosts file, not the other way around.', $pvh_file, ); } my $primary_obj = Cpanel::HttpUtils::Vhosts::Primary->new(); my ( $ok, $primary_hr ) = Cpanel::HttpUtils::Vhosts::Primary::Extract::extract_primary_vhosts_from_apache_conf(); die $primary_hr if !$ok; my $ssl_port = Cpanel::Config::Httpd::IpPort::get_ssl_httpd_port(); for my $ip_port ( keys %$primary_hr ) { my ( $ip, $port ) = split m{:}, $ip_port; next if $ip eq '*'; if ( $port eq $ssl_port ) { $primary_obj->set_primary_ssl_servername( $ip, $primary_hr->{$ip_port} ); } else { $primary_obj->set_primary_non_ssl_servername( $ip, $primary_hr->{$ip_port} ); } } my ( $save_ok, $save_msg ) = $primary_obj->save(); die $save_msg if !$save_ok; my ( $close_ok, $close_msg ) = $primary_obj->close(); die $close_msg if !$close_ok; return; } __PACKAGE__->script(@ARGV) if !caller;