<VirtualHost *:80> ServerName "processmaker" DocumentRoot E:/wamp/bin/processmaker/workflow/public_html DirectoryIndex index.html index.php <Directory "E:/wamp/bin/processmaker/workflow/public_html"> AddDefaultCharset UTF-8 AllowOverRide none Options FollowSymlinks Require all granted RewriteEngine on RewriteRule ^.*/(.*)$ sysGeneric.php [NC,L] ExpiresActive On ExpiresDefault "access plus 1 day" ExpiresByType image/gif "access plus 1 day" ExpiresByType image/png "access plus 1 day" ExpiresByType image/jpg "access plus 1 day" ExpiresByType text/css "access plus 1 day" ExpiresByType text/javascript "access plus 1 day" AddOutputFilterByType DEFLATE text/html </Directory> </VirtualHost>
配置本身没有错 错在ProcessMaker网站上写的是这样的
LoadModule actions_module modules/mod_actions.so LoadModule alias_module modules/mod_alias.so LoadModule asis_module modules/mod_asis.so LoadModule auth_basic_module modules/mod_auth_basic.so LoadModule authn_default_module modules/mod_authn_default.so LoadModule authn_file_module modules/mod_authn_file.so LoadModule authnz_ldap_module modules/mod_authnz_ldap.so # Important for PM LoadModule authz_default_module modules/mod_authz_default.so LoadModule authz_groupfile_module modules/mod_authz_groupfile.so LoadModule authz_host_module modules/mod_authz_host.so LoadModule authz_user_module modules/mod_authz_user.so LoadModule autoindex_module modules/mod_autoindex.so LoadModule cgi_module modules/mod_cgi.so LoadModule deflate_module modules/mod_deflate.so # Important for PM LoadModule dir_module modules/mod_dir.so LoadModule env_module modules/mod_env.so LoadModule expires_module modules/mod_expires.so # Important for PM LoadModule include_module modules/mod_include.so LoadModule isapi_module modules/mod_isapi.so LoadModule ldap_module modules/mod_ldap.so # Important for PM LoadModule log_config_module modules/mod_log_config.so LoadModule mime_module modules/mod_mime.so LoadModule negotiation_module modules/mod_negotiation.so LoadModule reqtimeout_module modules/mod_reqtimeout.so LoadModule rewrite_module modules/mod_rewrite.so # Important for PM LoadModule setenvif_module modules/mod_setenvif.so LoadModule ssl_module modules/mod_ssl.so # Important for PM LoadModule vhost_alias_module modules/mod_vhost_alias.so # Important for PM
而少了
AddOutputFilterByType DEFLATE text/html
时所必须的
LoadModule filter_module modules/mod_filter.so LoadModule headers_module modules/mod_headers.so