This article has been invaluable to me for ssl management on virtuozzo based servers. Hope it helps all of you!

For Virtuozzo 3.x/2.6.x version you may use the following instructions:

Let assume we have the container #101 with IP address 192.168.1.1 and hostname plesk.example.com.

1. Take SSL certificate from the container #101, it is accessible as /vz/root/101/usr/local/psa/admin/conf/httpsd.pem file on a hardware node and split it to separate files 192.168.1.1.crt and 192.168.1.1.key files which contain certificate and private key parts accordingly. Place these files into a Service Container in /vz/root/1/etc/vzcp directory.

2. Add the following section in the end of /vz/root/1/etc/vzcp/httpd.conf file for the Virtuozzo 3.x:
ServerName “plesk.example.com”
ProxyPreserveHost On

RequestHeader set X_VZCP_API_VERSION 30000
RequestHeader set X_VZCP_PROXY_MODE 1
RequestHeader set X_VZCP_PSA_PORT 8443
RequestHeader set X_VZCP_PSA_PROTO https
RequestHeader set X_VZCP_PSA_BASE_URL /vz/cp/psa/frameset
RequestHeader set X_VZCP_PSA_NOSERV_URL /vz/cp/psa/noservice
RequestHeader set X_VZCP_PSA_RESTORE_URL /vz/cp/psa/restore_session
RequestHeader set X_VZCP_PSA_PASSWD_URL /vz/cp/restore-password

SSLEngine on
RewriteEngine on
RewriteRule ^/?$ /vz/cp/psa/frameset [R]
RewriteRule ^/vz/cp/?$ /vz/cp/psa/frameset [R]
RewriteRule ^/login\.php3.*$ /vz/cp/psa/frameset [R]
RewriteRule ^/(vz|psa|favicon.ico) – [L]
RewriteRule ^(/.*)$ http://%{SERVER_ADDR}:8880$1 [P,QSA]

SSLCertificateFile “/etc/vzcp/192.168.1.1.crt”
SSLCertificateKeyFile “/etc/vzcp/192.168.1.1.key”

SetEnv VZCP_PORT 8443
SetEnv VZCP_MODE_PLESK yes
SetEnv VZCP_PSA_BASE_URL /vz/cp/psa/frameset

ErrorDocument 502 “/vz/cp/psa/noservice”

If you need to use CA Certificate, also add SSLCACertificatePath directive and specify the path to the file that contains CA Certificate.

NOTE: if you have Virtuozzo 2.6.2 installed please change X_VZCP_API_VERSION to 20602 so that the corresponding line looks like this:

RequestHeader set X_VZCP_API_VERSION 20602

3. You may set the ServerName or check that it is possible to resolve hostname by IP from inside a Service Container. You may add this line into /etc/hosts inside a Service Container if needed:

192.168.1.1 plesk.example.com

4. Restart the ‘vzcp’ service inside a Service Container:

# vzctl exec 1 service vzcp restart

Posted by Drwndx, filed under Geek |

Date: July 2, 2009, 6:42 pm | | No Comments »

  • Buy Cheapest ambien health Online Cheap Pharmacy Online. Low Prices.
  • Buy Cheapest doxycycline side effects Now Buy Medications Online. Free Viagra Pills!
  • Buy Cheap buy alprazolam without prescription Now Drugs, Health And Beauty. Best Drugstore.
  • Buy Cheapest online lorazepam Now WorldWide Shipping. Free Viagra Pills!
  • Buy Cheapest rheumatoid arthritis therapy Now WorldWide Shipping. Buy Medications Online.
  • Buy Cheap tramadol generic name Online Pharmacy Store. Cheap Prescription Drugs.
  • Buy Cheapest should i take valium Now Low Prices. Drugs, Health And Beauty.
  • Buy Cheapest phentermine overnight u s a Now Cheap Prescription Drugs. Low Prices.
  • Buy Cheap no prescription pharmacy Now Free Viagra Pills! Pharmacy At The Best Price!
  • Buy Cheapest diet pill approved by fda Online Cheap Pharmacy Online. Best Drugstore.
  • Buy Cheap xanax rx Now Cheap Prescription Drugs. Top Online Pharmacy.
  • Buy Cheap pain medication sale Now Best Internet. 100% Satisfaction Guaranteed.
  • Buy Cheapest drugstore coupon Now Best Internet. No Prescription Needed.
  • Buy Cheap order female viagra Online No Prescription Needed. Best Internet.
  • Buy Cheapest side effects of clonazepam Online Top Online Pharmacy. Best Online.
  • Buy Cheapest phentermine fast no prescription Online No Prescription Needed. Best Online.
  • Buy Cheap sleep disorders drugs Online Low Prices. Order Cheap Meds Without Rx.
  • Buy Cheapest cheap phentermine without a prescription Online Drugs, Health And Beauty. Best Internet.
  • Buy Cheapest diet pill safety Online Guaranteed Shipping. Free Viagra Pills!
  • Buy Cheapest azithromycin medicine Online Pharmacy At The Best Price! Low Prices.
  • Buy Cheapest xanax canada Now Order Cheap Meds Without Rx. Best Prices.
  • Buy Cheapest effects nexium Online 24/Online Pharmacy. Best Drugstore.
  • Buy Cheap blue pills 180 Now Cheap Online Pharmacy. Top Online Pharmacy.
  • Buy Cheap alprazolam 1mg Online Online Medical Shop. Cheap Online Pharmacy.
  • Buy Cheapest prescriptions for headaches Now Order Cheap Meds Without Rx. Low Prices.
  • Buy Cheap buy prescription drugs on line Now 100% Satisfaction Guaranteed. Pharmacy Store.
  • how to relieve ear pain Online Without Prescription Best Internet. Best Prices.
  • Buy Cheap xanax high Online Best Internet. Internet Prices For xanax high!
  • Buy Cheap generic pharmacy cialis Online No Prescription Needed. Best Prices.
  • Buy Cheap online shopping coupons for vitamin shoppe Now Discount Online Pharmacy. Best Drugstore.
  • cheap drug prices Online Without Prescription Best Drugstore. Low Prices.
  • Buy Cheapest valium without a prescription Now Pharmacy Store. Top Online Pharmacy.
  • Buy Cheap propecia buying Now Cheap Pharmacy Online. Free Viagra Pills!
  • Buy Cheap valium canadian Now Discount Online Pharmacy Shopping. Low Prices.
  • Buy Cheap buy levitra online Online Best Online. Discount Pharmacy Online.
  • Buying Cheap xanax for sell no prescription. Offshore Rx, Good Prices. Online Medical Shop.
  • Buy Cheap buy prescription drugs online Online Discount Online Pharmacy. Best Internet.
  • Buy Cheap order female viagra Online Best Drugstore. Special Prices For order female viagra!
  • Buy Cheapest drugs for breast cancer Online Pharmacy Store. No Prescription Needed.
  • Buying Cheap viagra canadian pharmacy. Mexican Rx, Best Prices. 24/Online Pharmacy.
  • Buy Cheap zoloft celexa Online Best Internet. No Prescription Needed.
  • Buy Cheap cialis overnight shipping Online Best Prices. Buy Medications Online.
  • Buy Cheap cheap viagra Online Best Internet. Special Prices For cheap viagra!
  • Buy Cheapest reaction to codeine Now Free Viagra Pills! Top Online Pharmacy.
  • Buy Cheapest ordering pills internet Online Buy Drugs Online No Prescription Needed.
  • Buy Cheapest elimite cream Online Cheap Pharmacy Online. Pharmacy Store.
  • Buy Cheap classification of valium Online Best Internet. Drugs, Health And Beauty.
  • Buy Cheapest eli lilly cialis Online Best Drugstore. Cheap Online Pharmacy.
  • Buy Cheap zolpidem prescription Now Special Prices For zolpidem prescription! Best Online.
  • Buy Cheapest brand vitamin discounters Now Guaranteed Shipping. WorldWide Shipping.
  • Buy Cheap cheap alprazolam Now Order Cheap Meds Without Rx. Best Prices.
  • Buy Cheapest buy animal medicine Online Online Medical Shop. Best Online.
  • Buy Cheap drugs for pain Online Free Viagra Pills! No Prescription Needed.
  • Buy Cheap finasteride effects Now Best Online. No Prescription Online Pharmacy.
  • where to get viagra or cialis Online Without Prescription Best Prices. Best Drugstore.
  • Buy Cheap mail order vitamins minerals Now Discount Pharmacy Online. Best Internet.
  • Buy Cheapest valium source online Online Best Drugstore. Buy Medications Online.
  • Buy Cheapest what is xanax used for Now The Largest Internet Pharmacy. Low Prices.
  • Buy Cheap side effects of doxycycline Online Best Prices. 100% Satisfaction Guaranteed.
  • Buy Cheapest cialis london Now Best Prices. 24/Internet)(safe Pharmacy.
  • Buy Cheap free generic sample viagra Now Cheap Online Pharmacy. Guaranteed Shipping.
  • Buy Cheap about ambien Now Best Internet. 24/Internet)(safe Pharmacy.
  • Buy Cheapest medications for anxiety Now Top Online Pharmacy Supplier. Low Prices.
  • Buy Cheapest new erectile drug cialis Online Top Online Pharmacy. Best Drugstore.
  • Buy Cheap fastest working diet pills Online Pharmacy Store. Discount Pharmacy Online.
  • Buy Cheap codeine description Now WorldWide Shipping. Cheap Online Pharmacy.
  • Buy Cheap buy meds online without presciption Now WorldWide Shipping. Special Prices For buy meds online without presciption!
  • Buy buy uk viagra Online Without Prescription. Best Prices. Best Internet.
  • Buy Cheapest revatio prices Now No Prescription Needed. Free Viagra Pills!
  • Buy Cheap treatments for bipolar disorder Now Pharmacy Store. Drugs, Health And Beauty.
  • Buy Cheap cheap lipitor Online 24/Internet)(safe Pharmacy. Best Prices.
  • Buy Cheapest klonopin information Online Online Prices For klonopin information! Best Prices.
  • Buy Cheapest pain medication for sale Online Buy Medications Online. Best Drugstore.
  • Buy Cheapest weight loss supplement Now Cheap Online Pharmacy. Best Drugstore.
  • Buy Cheap wellbutrin effexor Now Best Prices. Cheap Meds Without Prescription.
  • Buy Cheapest diazepam without prescription Online Cheap Pharmacy Online. Best Internet.
  • Buy Cheap phentermine without doctors perscription Now Top Online Pharmacy Supplier. Pharmacy Store.
  • Buy Cheapest viagra india Now Best Prices. Discount Pharmacy Online.
  • Buy Cheapest buy cheap cialis soft Online Online Medical Shop. Best Internet.
  • Buy Cheapest anti depression medication Now Best Prices. Cheap Prescription Drugs.
  • Buy Cheap 5 mg cialis Online Best Prices. Cheap Prescription Drugs.
  • Buy Cheap drugs to relieve muscle spasm Now Top Online Pharmacy Supplier. Best Drugstore.
  • Buy Cheapest buy cheapest viagra Now 24/Online Pharmacy. Best Drugstore.
  • Buy Cheapest cholesterol lipitor Online Special Prices For cholesterol lipitor! Best Online.
  • Buy Cheap long term use ambien Now Special Prices For long term use ambien! Best Internet.
  • Buy Cheap phentermine order Now Online Medical Shop. Free Viagra Pills!
  • Buy Cheap viagra cialis vs Online Best Drugstore. Buy Medications Online.
  • Buy Cheapest valium generic name Online WorldWide Shipping. Best Drugstore.
  • Buy Cheapest tadalafil 20 Online Online Medical Shop. Pharmacy Store.
  • Buy Cheap real mexican online pharmacies Now Guaranteed Shipping. 24/Online Pharmacy.
  • Buy Cheapest cialis tabs Online No Prescription Needed. Best Internet.
  • Buy Cheap help me to buy impotence medication Online WorldWide Shipping. Online Medical Shop.
  • Buy Cheap online prescription viagra without Now Discount Pharmacy Online. Best Internet.
  • Buy Cheap cialis next day delivery Online Guaranteed Shipping. Pharmacy Store.
  • Buy Cheapest cialis daily dosage Now 24/Online Pharmacy. Free Viagra Pills!
  • Buy Cheap blue pill Online Best Prices. Discount Online Pharmacy.
  • Buy Cheapest buy phentermine online no rx Now Pharmacy Store. No Prescription Needed.
  • Buy Cheapest buy cialis pharmacy Now Cheap Prescription Drugs. Best Online.
  • Buy Cheap sex ed levitra Online Best Online. Buy Medications Online.
  • Buy Cheap vitamin discount Online 24/Online Pharmacy. Best Internet.