Select Category
Sitemap Help Contact
print article

Check the Apache Settings and Modules for a Server

For Linux servers with root user access.

Learn how to view all Apache Server Information, including Apache module list and other settings for a Linux Server.

Step 1
Log in to your server via SSH. Run the command vi /etc/httpd/conf/httpd.conf to open the Apache configuration file in the vi text editor.
[root@u12345678 ~]# vi /etc/httpd/conf/httpd.conf

If at any time you feel like you have made a mistake, press the Esc key and type :q! and press ENTER to quit without(!) saving.

Step 2
When the file loads, type /server-info and press ENTER to search for the term "server-info"
# /server-info
Step 3
You will see a section regarding the server configuration reports which will be commented out. Commented lines are preceded by a hash symbol or pound sign (#). We will make changes to this section soon.
# Allow remote server configuration reports, with the URL of
# http://servername/server-info (requires that mod_info.c be loaded).
# Change the "" to match your domain to enable.
#<Location /server-info>
# SetHandler server-info
# Order deny,allow
# Deny from all
# Allow from
Step 4
Before editing the file, you will need to find out your own IP address. This is because we do not want to allow anyone but yourself access to the Apache Settings and Loaded Modules as it is a potential security threat. Open your Internet browser and navigate to
The IP address of your computer will be listed. Keep the address handy, we will use it in the next step.
Step 5
Back in the vi text editor, press the i key to insert text. Move the cursor and delete the pound signs (#) from the line beginning with <Location /server-info> all the way to the line starting with </Location> so that it looks like the example below.
<Location /server-info>
SetHandler server-info
Order deny,allow
Deny from all
Allow from
Step 6
Next we will change the line starting with Allow from and replace the domain with the IP address of your computer. In this example we replace "" with "" since we want to deny access to all connections except for the connection from our IP address.
<Location /server-info>
SetHandler server-info
Order deny,allow
Deny from all Allow from
Step 7
Save the changes to the file and exit the vi text editor by pressing the Esc key once and then type :x to exit and save changes.
# :x
Step 8
Now type /etc/init.d/httpd restart to restart Apache so that it can load our changes.
[root@u12345678 ~]# /etc/init.d/httpd restart
Stopping httpd:                                         [   OK   ]
Starting httpd:                                         [   OK   ]
[root@u12345678 ~]#
Step 9
Now using the Internet browser on your computer, enter your domain as the URL followed by /server-info such as

If done correctly, you should see a long page containing much information about the Apache Settings, Loaded Modules, and more!

Apache Server Information
Apache Server Information