The text on this page was translated by translation software. A revised version from our editors will be available soon.
For Dedicated Servers acquired before 28-10-2018, Server Deals and Virtual Server
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.
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.
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:
# SetHandler server-info
# Order deny,allow
# Deny from all
# Allow from .example.com
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.
<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:
Deny from all
Allow from .example.com
Now replace.example.com with your computer's IP address so that it can only be accessed from your computer. Here in the example 188.8.131.52:
Deny from all
Allow from 184.108.40.206
Exit the editor vi by pressing ESC and then entering :x.
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 ]
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.