How to check mod_headers and mod_expires modules enabled in apache

前端 未结 4 2062
渐次进展
渐次进展 2020-12-25 12:28

I want to check whether mod_headers and mod_expires modules enabled or not in my server

Is there a way available to list apache enabled/disabled modules using some p

4条回答
  •  半阙折子戏
    2020-12-25 13:10

    On Debian:

    user@machine:~$ /usr/sbin/apache2 -l
    

    Most GNU/Linux distros:

    user@machine:~$ /usr/sbin/httpd -l
    

    Ubuntu:

    user@machine:~$ ls /etc/apache2/mods-enabled
    

    On Mac OSX:

    user@mymac:~$ httpd -l
    

    On Win 7 (64-bit):

    C:\Users\myuser>"\Program Files (x86)\Apache Software Foundation\Apache2.2\bin\httpd.exe" -l
    

    Try these commands from a terminal window in all but Windows, which will use CMD instead.

提交回复
热议问题