- [Root @ jbxue/] # curl-I bbs.it-home.org
- HTTP/1.1 200 OK
- Server: nginx
- Date: Tue, 20 Jul 2010 05:45:13 GMT
- Content-Type: text/html; charset = UTF-8
- Connection: keep-alive
- Vary: Accept-Encoding
The PHP version is hidden.
2. other basic PHP Security settings:
Disable_functions = phpinfo, system, exec, shell_exec, passthru, popen, dl, proc_open, popen, curl_exec, curl_multi_exec, parse_ini_file, show_source # This Command accepts a list of functions separated by commas, to disable a specific function.
Display_errors = Off # whether to display the error information as part of the output. On the final web site, we strongly recommend that you disable this feature and use error logs instead. Enabling this feature may expose some security information, such as the file path, database planning, or other information on your web service.
Allow_url_fopen = Off # whether to enable remote files. we recommend that you disable it. if the website requires the collection function, you can enable it.
Safe_mode = On # whether to enable security mode. When the script is opened, PHP checks whether the owner of the current script is the same as the owner of the file to be operated. if the owner is the same, the operation is allowed. Otherwise, the operation is rejected. The prerequisite for enabling security mode is that your directory file permissions have been fully assigned.
Open_basedir =/var/www/html/jbxue:/var/www/html/168 pc # directory permission control. The php program in the jbxue directory cannot access the contents in the 168pc directory. This is not the case. In Linux/UNIX systems, use colons to separate directories, and use semicolons to separate directories in Windows. |