有关nginx+php安全配置

有关nginx+php安全配置的问题,
在apache下可以用php_admin_flag open_basedir 分别设定虚拟主机php操作的目录。而且apache还有suexec模块。
对于nginx不知道如何设定,暂时我没有知道。只有在php.ini设定宏观的操作目录,而不能细化到虚拟主机自己的目录。这存在很大的安全隐患。
希望交流一下这个问题。

回复

此内容将保密,不会被其他人看见。
  • 允许的 HTML 标签: <a> <b> <address> <blockquote> <br> <caption> <center> <code> <dd> <del> <div> <dl> <dt> <em> <font> <h2> <h3> <h4> <h5> <h6> <hr> <i> <img> <li> <ol> <p> <pre> <span> <strong> <sub> <sup> <table> <tbody> <td> <tfoot> <th> <thead> <tr> <u> <ul> <tr>
  • 行和段被自动切分。
  • 网页地址和电子邮件地址将会被自动转换为链接。

更多格式化选项信息

随机验证
本功能用于防止垃圾信息
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.