Hi all,
I cannot get curl to work on my local host for server-status.
I already put it in my httpd.conf file. As well, PHP is installed. I read the guide, but I do not see libcurl in my httpd.conf file.As well, I used to vi to edit and block a specific IP address. This is for apache 2.4 in Centos7.
45 # Dynamic Shared Object (DSO) Support
46 #
47 # To be able to use the functionality of a module which was built as a D SO you
48 # have to place corresponding `LoadModule' lines at this location so the
49 # directives contained in it are actually available _before_ they are us ed.
50 # Statically compiled modules (those listed by `httpd -l') do not need
51 # to be loaded here.
52 #
53 # Example:
54 # LoadModule foo_module modules/mod_foo.so
55 #
56 Include conf.modules.d/*.conf
57 LoadModule status_module modules/mod_status.so
58
59 ExtendedStatus on
60
61 <Location /server-status>
62 SetHandler server-status
63 Order deny,allow
64 Deny from all
65 Allow from 10.
66 </Location>
104 #ServerName
www.example.com:80
105
106 <Directory /var/www/path/to/your/web/documents>
107 order allow,deny
108 deny from 192.168.XXX.XXX
109 allow from all
110 </Directory>
111
112 # Deny access to the entirety of your server's filesystem. You must
113 # explicitly permit access to web content directories in other
114 # <Directory> blocks below.
115 #
116 <Directory />
117 AllowOverride none
118 Require all denied
119 </Directory>
Any help is appreciated! Thank you
(Update) - Does this mean my virtual host directory is not set up correctly? I am root, so it is odd that permission is denied.
Thanks
I am not getting this error: [root@localhost /]# curl
http://localhost/server-status
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access /server-status
on this server.</p>
</body></html>
(2nd update) - Now this error: Duplicate configuration in httpd.conf?
Apr 20 18:57:28 localhost.localdomain httpd[1051]: [Fri Apr 20 18:57:28.275924 2018] [so:warn] [pid 1051] AH01574: module status_module is already loaded, skipping
Apr 20 18:57:28 localhost.localdomain httpd[1051]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' directive globally to suppress this message