Dino Geek, try to help you

How to use the mod_info module in Apache?


The mod\_info module provides comprehensive information about the server configuration. It includes details such as installed modules and directives in the configuration files.

Here are the steps to use the mod\_info module in Apache:

Step 1: Ensure Mod\_Info Is Enabled
By default, most of the Apache installations have all modules enabled. However, you can confirm this by looking for the following line in your httpd.conf file.

LoadModule info_module modules/mod_info.so

If it’s commented out (prefixed with a ‘#’), remove the ‘#’ and save the file.

Step 2: Add Location Directive to Apache Configuration
The next step is to add this set of lines just before the closing section of the main part of httpd.conf:

SetHandler server-info Order deny,allow Deny from all Allow from localhost

This will create a new directory “server-info” that will display mod\_info data. The “Order” and “Allow” directives are added for security reasons.

Step 3: Restart Apache Server
Whenever you make changes to Apache’s configuration file, you must restart the server for the changes to take effect. Use:

systemctl restart httpd

For some systems, you may need to use:

service httpd restart

Step 4: Accessing Server Information
finally, to access the server information utilising the mod\_info module, type the following in your web browser:

http://localhost/server-info

Keep in mind that Apache’s mod\_info provides very detailed information about the server configuration, including sensitive information (like file paths), so be careful not to make this information publicly accessible.


Simply generate articles to optimize your SEO
Simply generate articles to optimize your SEO





DinoGeek offers simple articles on complex technologies

Would you like to be quoted in this article? It's very simple, contact us at dino@eiki.fr

CSS | NodeJS | DNS | DMARC | MAPI | NNTP | htaccess | PHP | HTTPS | Drupal | WEB3 | LLM | Wordpress | TLD | Domain name | IMAP | TCP | NFT | MariaDB | FTP | Zigbee | NMAP | SNMP | SEO | E-Mail | LXC | HTTP | MangoDB | SFTP | RAG | SSH | HTML | ChatGPT API | OSPF | JavaScript | Docker | OpenVZ | ChatGPT | VPS | ZIMBRA | SPF | UDP | Joomla | IPV6 | BGP | Django | Reactjs | DKIM | VMWare | RSYNC | Python | TFTP | Webdav | FAAS | Apache | IPV4 | LDAP | POP3 | SMTP

| Whispers of love (API) | Déclaration d'Amour |






Legal Notice / General Conditions of Use