Error 405 occur when try to connect with server

alexelixir

Verified User
Joined
Jun 9, 2011
Messages
38
Location
Russia
Hello everybody
I am trying to setup MDM server with the help of this document https://github.com/project-imas/mdm-server (Server Setup part only)
after setup when we try to install profile in IPHONE it give us 405 error in communication
when i further try to digout the problem i found that application depend on put method to be allow in server for successful communication

then i find this page
https://forum.directadmin.com/showthread.php?t=35402

and do some change in httpd.conf but still facing same error please help me to overcome this issue
 
I'm not sure what you're trying to do with httpd.conf as the mdm server is the one your app is supposed to talk to. Not to apache.

Make sure your mdm server is running (run: python server.py) and the port (defaults to :8080) isn't blocked by your firewall.

If you for some weird reason do need PUT/DELETE etc on apache activated, you should add a few lines somewhere in a <Directory ... > block in your httpd.conf:
e.g.

<Limit GET POST PUT DELETE HEAD OPTIONS>
Order allow,deny
# You might want something a little more secure here, this is a dev setup
Allow from all
</Limit>
<LimitExcept GET POST PUT DELETE HEAD OPTIONS>
Order deny,allow
Deny from all
</LimitExcept>
Script PUT /var/www/test/put.php
Script DELETE /var/www/test/put.php

You can read the apache docs for more info on that, if you wish.
 
@zEitEr
this is apache server

@sysdev
python server.py is running and same i verified with netstat also. and firewall is disabled on this server but when i browse https://IP:8080 it waiting for connection and then timeout (maybe i missing some more configuration here)
initially i also think that apache has nothing to do with MDM but when i got 405 error while trying to install profile in IPHONE i forced to think about enabling the put method in apache
now even i am not able to understand where i missing the configuration steps

Oct 14 17:38:55 Test profiled[141] <Error>: SecTrustEvaluate [root AnchorTrusted]
Oct 14 17:38:55 Test profiled[141] <Error>: SecTrustEvaluate [root AnchorTrusted]
Oct 14 17:38:55 Test profiled[141] <Error>: SecTrustEvaluate [leaf AnchorTrusted]
Oct 14 17:38:56 Test SpringBoard[58] <Warning>: [<_UIKeyboardArbiterHandle: 0x1563b4b90; PID 113: com.apple.accessibility.AccessibilityUIServer <(null)>; hosting PIDs {(
)}; level 0.000000; active NO [wants NO]; suppression 0>] could not take process assertion
Oct 14 17:38:59 Test profiled[141] <Notice>: (Note ) MC: Redirected permanently to URL: https://domain.com/server/
Oct 14 17:39:00 Test profiled[141] <Notice>: (Error) MDM: Cannot Authenticate. Error: NSError:
Desc : A connection to the server could not be established.
US Desc: A connection to the server could not be established.
Domain : MCHTTPTransactionErrorDomain
Code : 23001
Type : MCFatalError
Params : (
"https://domain.com/server",
405
)
Oct 14 17:39:00 Test profiled[141] <Notice>: (Error) MC: Cannot install MDM “Mobile Device Management”. Error: NSError:
Desc : The payload “Mobile Device Management” could not be installed.
Sugg : A connection to the server could not be established.
US Desc: The payload “Mobile Device Management” could not be installed.
US Sugg: A connection to the server could not be established.
Domain : MCInstallationErrorDomain
Code : 4001
Type : MCFatalError
Params : (
"Mobile Device Management"
)
...Underlying error:
NSError:
Desc : A connection to the server could not be established.
US Desc: A connection to the server could not be established.
Domain : MCHTTPTransactionErrorDomain
Code : 23001
Type : MCFatalError
Params : (
"https://domain.com/server",
405
)

this is the response from IPHONE while trying to install profile
 
Back
Top