Please Note:

The text on this page was translated by translation software. A revised version from our editors will be available soon.

For Dedicated Server, Virtual Server, Dynamic Cloud Server with Linux

This article shows you how to view detailed information about configuring the Apache web server.

To do this, make a small change to the Apache configuration file. You can then use your browser to display a page with the configuration data.

Step 1

Log in to your server via SSH and start the editor vi with the command vi /etc/apache2/mods-available/info.conf. This command opens the required configuration file of the web server.

Please note: If you are not sure whether your entries in the editor vi are correct, you can exit it at any time by pressing the ESC key and the following character string :q! Your changes are not saved.

Step 2

The section that you should change deals with configuration reports of the web server. The lines in question are commented out by a #, and are therefore not taken into account when Apache interprets the configuration file. Here is an example:

#<Location /server-info>
# SetHandler server-info
# Order deny,allow
# Deny from all
# Allow from .example.com
#</Location>
Step 3

For security reasons, we recommend restricting access to the server's information so that it can only be done from your computer.

Before you make any changes to the configuration file, make a note of the IP address of your computer. You can find your IP using the
1&1 IONOS IP Address Check.

Step 4

<Location /server-info>Return to the vi editor and start insert mode by tapping i. Move the cursor to the string <Location /server-info> and remove the # characters in this and the following lines so that it looks like the example:

<Location /server-info>
SetHandler server-info
Order deny,allow
Deny from all
Allow from .example.com
</Location>
Step 5

Now replace.example.com with your computer's IP address so that it can only be accessed from your computer. Here in the example 82.165.217.216:

<Location /server-info>
SetHandler server-info
Order deny,allow
Deny from all
Allow from 82.165.217.216
</Location /server-info>
Step 6

Exit the editor vi by pressing ESC and then entering :x.

Step 7

Activate the corresponding module of the Apache web server with the command a2enmod info and restart Apache with the command /etc/init.d/httpd. You should see something like this on your screen:

[root@u12345678 ~]# /etc/init.d/httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
[root@u12345678 ~]# 
Step 8

Start a web browser on your server and enter your domain name followed by /serverinfo, e.g. www.1und1-hilfe.de/serverinfo. You will receive detailed information about your Apache web server.

<Location /server-info>If you no longer need this functionality, you can reopen the configuration file,<Location /server-info> comment out <Location /server-info>the section<Location /server-info> and then restart Apache as described in step 7.