Yealink Forums

Full Version: [OT] Apache 2.4 config allowing PUT
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I'm using Apache 2.4 on Debian hosts to serve Yealink config files through HTTP.
I'm having a hard time to configure an Apache 2.4 instance allowing phones to send files back using PUT method (call-log files, ...).

Can someone be kind enough to publish a working example ?

Among many attempts, the config bellow fails with a 405 Method not allowed

Code:
<VirtualHost *:8080>
    ServerAdmin webmaster@localhost
    Alias /yealink /srv/tftp/yealink
    DocumentRoot /srv/tftp/yealink
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
    <Location "/srv/tftp/yealink">
       AllowMethods reset    
    </Location>
    <Directory /srv/tftp/yealink>
       Require all granted
    </Directory>
</VirtualHost>

Config files are stored in /srv/tftp/yealink. I dedicated 8080 port for phone provisioning.
I am expecting it to work with
curl -T foo.cfg http://192.168.1.1:8080/yealink/foo.cfg

I've not tried all possible combinations yet (with a different URL, with or without a pre-existing foo.cfg file within /srv/tftp/yealink.

Best regards
I
Reference URL's