• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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