Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

mobileconfig on iphone via php

Posted on 2011-03-17
1
Medium Priority
?
2,749 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 200 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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.
Set up iPhone and iPad email signatures to always send in high-quality HTML with this step-by step guide.
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

670 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