You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2020/03/17 18:29:56 UTC

[Bug 64235] New: Apache 2.4.29 server-status locally only

https://bz.apache.org/bugzilla/show_bug.cgi?id=64235

            Bug ID: 64235
           Summary: Apache 2.4.29 server-status locally only
           Product: Apache httpd-2
           Version: 2.4.29
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: critical
          Priority: P2
         Component: mod_status
          Assignee: bugs@httpd.apache.org
          Reporter: rami.alkhawaldeh@tarjama.com
  Target Milestone: ---

Hi all,

I have a problem when curl http://localhost/server-status >> 404 not found 


The status mod is enabled and all is good.

this is my /etc/apache2/mod-enabled/status.conf

<IfModule mod_status.c>
        # Allow server status reports generated by mod_status,
        # with the URL of http://servername/server-status
        # Uncomment and change the "192.0.2.0/24" to allow access from other
hosts.

    <Location /server-status>
        SetHandler server-status
        <RequireAny>
            Require local
        </RequireAny>
    </Location>
        # Keep track of extended status information for each request
        ExtendedStatus On

        # Determine if mod_status displays the first 63 characters of a request
or
        # the last 63, assuming the request itself is greater than 63 chars.
        # Default: Off
        #SeeRequestTail On


        <IfModule mod_proxy.c>
                # Show Proxy LoadBalancer status in mod_status
                ProxyStatus On
        </IfModule>


</IfModule>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
Any help would be greatly appreciated.

Best regards

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 64235] Apache 2.4.29 server-status locally only

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64235

Rami Mohammad <ra...@tarjama.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Rami Mohammad <ra...@tarjama.com> ---
Solved Al7amdullellah .. by adding this line 

    RewriteCond %{REQUEST_URI} !=/server-status

Kind regards and thanks for the support

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 64235] Apache 2.4.29 server-status locally only

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64235

Eric Covener <co...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #1 from Eric Covener <co...@gmail.com> ---
something hiding in vhost configs w/ <Location /> ?

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 64235] Apache 2.4.29 server-status locally only

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64235

--- Comment #2 from Rami Mohammad <ra...@tarjama.com> ---
(In reply to Eric Covener from comment #1)
> something hiding in vhost configs w/ <Location /> ?

This is my vhost :

<VirtualHost *:80>
  ServerName www.mmm.com
  ServerAdmin admin@mmm.com
  ErrorLog /home/mmm/logs/mmm-error.log
  CustomLog /home/mmm/logs/mmm.com-access.log combined
  CustomLog /home/mmm/logs/mmm.com-timed.log timed
  DocumentRoot /home/mmm/mmm_memory/public
  AddDefaultCharset UTF-8
  DirectoryIndex index.php


  <Directory /home/mmm/mmmn_memory/public>
    Options -Indexes
    AllowOverride None
    Require all granted

    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} -s [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [NC,L]
    RewriteCond %{REQUEST_FILENAME} !^.*\.(gif|jpg|png|css|js|swf|xml|php)$
    RewriteRule !\.(js|ico|gif|jpg|jpeg|png|css)$ index.php
    # Make sure proxies don't deliver the wrong content
  </Directory>

  <DirectoryMatch (^#.*#$|.*~$|^\..*)>
    Require all denied
  </DirectoryMatch>

  <FilesMatch (^#.*#$|.*~$|^\..*)>
    Require all denied
  </FilesMatch>
</VirtualHost>

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org