View Your Apache Details
Please use the “Print” function at the bottom of the page to create a PDF.
For Dedicated Servers and Server Power Deals managed in the server administration of the IONOS account
This article shows you how to view detailed information about the Apache web server configuration.
To do this, you will need to make a small change to the Apache configuration file. You can then use your browser to display the configuration data.
Step 1
Log in to your server via SSH and start the text editor vi with the command vi /etc/apache2/mods-available/info.conf. This command also opens the required server configuration file.
Please note: If you are not sure whether your entries are correct, you can exit vi at any time by pressing ESC, followed by : (colon), and then typing "q!" (without the quotation marks). Your changes will not be 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
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.