• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

set 'Script PUT /path/put.php in vhost.conf ?

AndiS

New Pleskian
Hi,

I'm running Plesk 11 under Linux. We want to enable to the 'PUT method' for a specific subdomain.

Additional informations how to set this:
See http://www.php.net/manual/en/features.file-upload.put-method.php
This would normally mean that the remote client would like to save the content that follows as: /path/filename.html in your web tree. It is obviously not a good idea for Apache or PHP to automatically let everybody overwrite any files in your web tree. So, to handle such a request you have to first tell your web server that you want a certain PHP script to handle the request. In Apache you do this with the Script directive. It can be placed almost anywhere in your Apache configuration file. A common place is inside a <Directory> block or perhaps inside a <VirtualHost> block. A line like this would do the trick:
Script PUT /put.php

I have created a vhost.conf in /var/www/vhosts/yx.de/subdomains/conf/
for a subdomain with the content:
<Directory /var/www/vhosts/yx.de/subdomains/steuerung/httpdocs>
<IfModule sapi_apache2.c>
Script PUT /var/www/vhosts/xy.de/subdomains/steuerung/httpdocs/put.php
:

After saving the vhost.conf I've called the command:

/usr/local/psa/admin/bin/httpdmng --reconfigure-domain yx.de

but Plesk didn't used that vhost.conf.

- Is it possible to use a vhost.conf for subdomains in Plesk 11 ?
- It it only possible to change php setting in the PHP setting dialog in Plesk panel ?
- How to configure the 'Script PUT .... directive ' in Plesk 11 ?

Thanks,
Andreas
 
Back
Top