Virtual Host Settings
ServerAdmin webmaster@hostmachine.com
DocumentRoot /www/virtual.com/htdocs
ServerName www.virtual.com
UserDir /www/virtual.com/htdocs
ScriptAlias /cgi -bin/ /www/virtual.com/cgi-bin/
ErrorLog /www/virtual.com/logs/error_log
CustomLog /www/virtual.com/logs/access_log common
Directory settings
# Set whether to use php for this virtual host
php_engine On
# Set the debugging level of php error information
php_error_reporting 1
# Set whether to record php error logs
php_log_errors On
# Set php Error log file
php_error_log /www/virtual.com/logs/php_error_log
# Set the maximum survival time of a php thread
php_max_execution_time 180
# Set the user’s temporary upload directory
php_upload_tmp_dir /www/virtual.com/htdocs/tmp
# Set include header files
php_include_path /www/virtual.com/htdocs/include
Executable directory settings
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
The above introduces the special settings for PHP in the tomcat virtual host virtual host, including the content of the tomcat virtual host. I hope it will be helpful to friends who are interested in PHP tutorials.