Solved

mobileconfig on iphone via php

Posted on 2011-03-17
1
2,685 Views
Last Modified: 2012-08-13
I have a .mobileconfig file , and want to serve it to the iphone via php. I have this in my php file :

header('Content-type: application/x-apple-aspen-config; charset=utf-8');
header('Content-Disposition: attachment; filename="test.mobileconfig"');


my config file is named test.mobileconfig.

I keep getting this error on the iphone:
cannot install profile
safari could not install a profile due to an unknown error

Any ideas?
0
Comment
Question by:sikt
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 11

Accepted Solution

by:
packetguy earned 50 total points
ID: 35409976
You have to add the "x-apple-aspen-config" MIME type to your apache server httpd.conf file, or, depending on your apache server's configuration you may be able to do locally within the directory containing the .mobileconfig file by creating a .htaccess file. Add the following lines:

<IfModule mod_mime.c>
      AddType application/x-apple-aspen-config .mobileconfig
</IfModule>

This way your .mobileconfig file will be served up with the MIME Content-Type of application/x-apple-aspen-config.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of new and distinct gadgets are making their appearance every other day. The latest gadget that has wooed the attention of all gadget lovers and non gadget lovers alike is the Smartwatch. This tiny gadget is capable of offering live access to …
There is a security feature on iOS devices that is nearly impenetrable when it has been activated.  This article will provide some possible solutions as well as necessary steps to take to ensure you do not end up with a locked device.
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question