简体   繁体   中英

How to hide iOS App (.plist and .ipa file) on Apache server?

I have to hide my iOS app on my Apache server (exactly the folder with app and .plist) and I tried with permission (750) but the link for download the app doesn't work:

<a href="itms-services://?action=download-manifest&url=http://example.com/prova/xxx.plist">Download App</a>

How can I hide the folder and in the same permit the download of app?

If you have the index module of Apache enabled (which is per default) Apache shows you an index when browsing a directory without an index.html (or similar) file.

To disable this behaviour add the following line to your .htaccess file:

Options -Indexes

If you do not have an .htaccess file yet, just create a blank file in the directory you want to hide and the add the line.

If you just want to hide all files with the ending plist and app from the index add the following line to your .htaccess instead:

IndexIgnore *.plist *.app

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM