httpd-qampp.conf 配置文件更新.

分类
Qampp手册
更新时间
2020-11-20 13:55:07

如果是3.5.0版本之前的用户, 建议更新此配置.

路径为: apache\conf\extra\httpd-qampp.conf 

#
# Qampp settings
# # 本文件基本上不用修改,修改前请注意.


# php模块加载设置.
Define MPHPV${APHPVER} 1


Define PHPMODULE php${APHPVER}_module
<IfDefine MPHPV8>
   Define PHPMODULE php_module
</IfDefine>


define APACHEPHPPATH "${APPROOT}/php"
LoadModule ${PHPMODULE} "${APACHEPHPPATH}/php${APHPVER}apache2_4.dll"


<IfModule ${PHPMODULE}>
define LOG "${LOG}php${APHPVER}_module>"
PHPINIDir "${APACHEPHPPATH}"


<FilesMatch "\.php$">
   SetHandler application/x-httpd-php
</FilesMatch>
<FilesMatch "\.phps$">
   SetHandler application/x-httpd-php-source
</FilesMatch>
</IfModule>


# fcgid_module 的设置
<IfModule fcgid_module>
  define LOG "${LOG}fcgid_module>" 
  <filesmatch "\.phpc$">
    SetHandler fcgid-script
  </filesmatch>
    Options ExecCGI
    FcgidWrapper "${APPROOT}/php/php-cgi.exe" 
    FcgidInitialEnv PHP_FCGI_MAX_REQUESTS 1000 
    FcgidConnectTimeout 10 
    FcgidMaxProcesses 300 
    FcgidMaxProcessesPerClass 300 
    FcgidOutputBufferSize 64 
    ProcessLifeTime 0 
    FcgidMaxRequestsPerProcess 0 
    FcgidMinProcessesPerClass 0 
    FcgidFixPathinfo 0 
    FcgidProcessLifeTime 0 
    FcgidZombieScanInterval 20 
    FcgidMaxRequestLen 536870912 
    FcgidIOTimeout 120 
    FcgidTimeScore 3 
 </IfModule>




# CGI perl seting
<IfModule cgi_module>
  define LOG "${LOG}cgi_module>"
  <FilesMatch "\.(py|pl|cgi)$">
    SetHandler cgi-script
  </FilesMatch>
  
  <ifdefine SCRIPTLOG>
    ScriptLog "${SCRIPTLOG}"
  </ifdefine>
  Options ExecCGI
</IfModule>


<IfDefine DUSUFFIX>
  <FilesMatch "\.[^\.]*\.[^\.]*$">
	   Order Allow,Deny
	   Deny from All
	   require all denied
  </FilesMatch>
</IfDefine>


<VirtualHost *:${DEFPORT}>
    <LocationMatch "^/(?i:(?!qsvn|${APPSOURCE}))">
       require all denied
       ${DEFHOSTREQUIRE}
    </LocationMatch>


    DocumentRoot "${HOSTDOCUMENTROOT}"
            
    # 一些独占的别名转向. 这些url结构已经被占用.
    define QAMPPAPIPATH "${APPROOT}/Data_lib/phps"
    <IfModule alias_module>
        Alias /qampp_api "${QAMPPAPIPATH}"          
        <IfModule info_module>
            Alias /server-info "${QAMPPAPIPATH}" 
            <Location /server-info>
                SetHandler server-info
            </Location>
        </IfModule>
        
        <IfModule status_module>
            Alias /server-status "${QAMPPAPIPATH}" 
            <Location /server-status>
                SetHandler server-status
            </Location>
            #ExtendedStatus On
        </IfModule>
    </IfModule>
</VirtualHost> 
# 本地host结束


<ifmodule alias_module>
  # xamppsource 别名
  Alias /${APPSOURCE} "${APPSOURCEPATH}" 
  <Directory "${APPSOURCEPATH}">
	AllowOverride None 
	Options IncludesNoExec 
	AddOutputFilter Includes html 
	AddHandler type-map var
	LanguagePriority en cs de es fr it ja ko nl pl pt-br ro sv tr 
	ForceLanguagePriority Prefer Fallback 
	Require all granted
	<FilesMatch ".*">
	 Order Deny,Allow
	 Allow from All
	 Require all granted
	</FilesMatch>
   </Directory>
   
   # phpmyadmin 别名
   alias /phpmyadmin "${APPROOT}\Data_lib\phpmyadmin"
   <directory "${APPROOT}\Data_lib\phpmyadmin">
	require all denied
	${DEFPMDHOSTREQUIRE}
   </directory>
</ifmodule>


define ERRORDOCUMENTPATH "/${APPSOURCE}"
# 错误页设置.
ErrorDocument 400 "${ERRORDOCUMENTPATH}/error/HTTP_BAD_REQUEST.html.var"
ErrorDocument 401 "${ERRORDOCUMENTPATH}/error/HTTP_UNAUTHORIZED.html.var"
ErrorDocument 403 "${ERRORDOCUMENTPATH}/error/HTTP_FORBIDDEN.html.var"
ErrorDocument 404 "${ERRORDOCUMENTPATH}/error/HTTP_NOT_FOUND.html.var"
ErrorDocument 405 "${ERRORDOCUMENTPATH}/error/HTTP_METHOD_NOT_ALLOWED.html.var"
ErrorDocument 408 "${ERRORDOCUMENTPATH}/error/HTTP_REQUEST_TIME_OUT.html.var"
ErrorDocument 410 "${ERRORDOCUMENTPATH}/error/HTTP_GONE.html.var"
ErrorDocument 411 "${ERRORDOCUMENTPATH}/error/HTTP_LENGTH_REQUIRED.html.var"
ErrorDocument 412 "${ERRORDOCUMENTPATH}/error/HTTP_PRECONDITION_FAILED.html.var"
ErrorDocument 413 "${ERRORDOCUMENTPATH}/error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var"
ErrorDocument 414 "${ERRORDOCUMENTPATH}/error/HTTP_REQUEST_URI_TOO_LARGE.html.var"
ErrorDocument 415 "${ERRORDOCUMENTPATH}/error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var"
ErrorDocument 500 "${ERRORDOCUMENTPATH}/error/HTTP_INTERNAL_SERVER_ERROR.html.var"
ErrorDocument 501 "${ERRORDOCUMENTPATH}/error/HTTP_NOT_IMPLEMENTED.html.var"
ErrorDocument 502 "${ERRORDOCUMENTPATH}/error/HTTP_BAD_GATEWAY.html.var"
ErrorDocument 503 "${ERRORDOCUMENTPATH}/error/HTTP_SERVICE_UNAVAILABLE.html.var"
ErrorDocument 506 "${ERRORDOCUMENTPATH}/error/HTTP_VARIANT_ALSO_VARIES.html.var"

Qampp 相关下载信息

Qampp APACE/PHP一键全系列环境包 : 64位, 32位,
Qampp Qampp 兼容版(winXP, win2003等) XP兼容版

数据下载由网络决定

腾讯云 / 腾讯AI / 腾讯开源 / 南沙新区 / 信用
分享工作室[粤ICP备16004795号-2] Date:2020-11-25 02:58:12(UTC) RunTime:0.010