tomclegg.net


Diary
Examples
    256-router
    adzap
    debian-quota
    diskonmodule
    dynip
    ezmlm-linux
    fbsdhabits
    freebsdclone
    maildirpop3d-awfulhak
    mandy
    md
    mrtg
    net-snmp
    oracle9i
    oracle9i-bsd5
    oracle9i-client
    oracle9i-nat
    php-cgi
    php-commandline
    php-image
    php-kics
    php-mini_httpd
    pinouts
  >plesk-symlink-php<
    pxe
    qmail-linux
    qmail-qfilter
    racoon-sonicwall
    redundant-vpn
    rewriterule
    smalldog
    spamassassin
    squid-tproxy
    supfile
    suse73
    svc-nmbd
    svc-smbd
    svc-smtpd
    toyotastereo
    vm
    vn-file
    wmp-invalid
    xcode-remote-install
    xen-eth0-renamed
    xen3-ubuntu-dapper
Hire Tom
Mostly Mozart
Patches
School
Scrapbook
Software
Telephones




colocation
comments
davidireland
edsgranola
faq
funsites
goodlooking
goodmovies
houserules
liberating
nodefaultroute
resume
resume2
scratch
shopping
snacks
todo
university
warisbogus

Making Plesk run php programs outside http[s]docs
Posted June 29, 2005

Problem

You have a certificate for secure.example.com. You want to host the stuff in other domains under secure.example.com. For example, https://secure.example.com/site1/ and https://secure.example.com/site2/ show the same thing as http://site1/ and http://site2/.

Solution

Security warning: security won't be as good any more. Understand the consequences before doing this(tm).

Add to /home/httpd/vhosts/secure.example.com/conf/vhost_ssl.conf

<Directory /home/httpd/vhosts/secure.example.com/httpsdocs>
  <IfModule sapi_apache2.c>
    php_admin_value open_basedir
     "/home/httpd/vhosts/secure.example.com/httpsdocs:/home/httpd/vhosts:/tmp"
  </IfModule>
  </Directory>
then
/usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=secure.example.com
then
/etc/rc.d/init.d/httpd reload