简体   繁体   English

如何在Apache服务器上隐藏iOS App(.plist和.ipa文件)?

[英]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: 我必须将我的iOS应用程序隐藏在我的Apache服务器上(恰好是包含应用程序和.plist的文件夹),并且尝试使用权限(750),但是下载该应用程序的链接不起作用:

<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. 如果您启用了Apache的索引模块(默认情况下是默认设置),则Apache在浏览没有index.html(或类似文件)的目录时会显示一个索引。

To disable this behaviour add the following line to your .htaccess file: 若要禁用此行为,请将以下行添加到您的.htaccess文件中:

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. 如果您还没有.htaccess文件,只需在要隐藏的目录中创建一个空白文件,然后添加该行。

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: 如果您只想从索引中隐藏所有带有结尾plistapp文件,请在.htaccess中添加以下行:

IndexIgnore *.plist *.app

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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