• Home
  • Cloud VPS
    • Hong Kong VPS
    • US VPS
  • Dedicated Servers
    • Hong Kong Servers
    • US Servers
    • Singapore Servers
    • Japan Servers
  • Company
    • Contact Us
    • Blog
logo logo
  • Home
  • Cloud VPS
    • Hong Kong VPS
    • US VPS
  • Dedicated Servers
    • Hong Kong Servers
    • US Servers
    • Singapore Servers
    • Japan Servers
  • Company
    • Contact Us
    • Blog
ENEN
  • 简体简体
  • 繁體繁體
Client Area

Apache Security Tip: Use ServerTokens Prod to hide Apache version

December 17, 2023

Apache Security Tip: Use ServerTokens Prod to hide Apache version

When it comes to securing your VPS hosting server, one of the essential steps is to hide the version of the web server software you are using. Apache is one of the most popular web server software, and by default, it reveals its version number in the server response headers. This information can be exploited by attackers to target known vulnerabilities in specific versions of Apache.

To mitigate this risk, Apache provides a configuration directive called ServerTokens, which allows you to control the amount of information disclosed in the server response headers. By setting ServerTokens to “Prod,” you can hide the Apache version and other sensitive information.

Why should you hide the Apache version?

There are several reasons why hiding the Apache version is crucial for the security of your VPS hosting server:

  • Security through obscurity: By hiding the Apache version, you make it harder for attackers to identify potential vulnerabilities specific to your server’s software version.
  • Protection against automated attacks: Attackers often use automated tools to scan for known vulnerabilities in web servers. By hiding the Apache version, you reduce the chances of being targeted by such attacks.
  • Preventing information leakage: Revealing the Apache version can provide valuable information to attackers, allowing them to tailor their attacks more effectively.

How to hide the Apache version using ServerTokens Prod?

To hide the Apache version, follow these steps:

  1. Connect to your VPS hosting server via SSH.
  2. Open the Apache configuration file using a text editor. The location of the file may vary depending on your server’s operating system and Apache installation. Common locations include /etc/apache2/apache2.conf or /etc/httpd/conf/httpd.conf.
  3. Locate the line that starts with ServerTokens. If the line is commented out (starts with a #), remove the # to uncomment it.
  4. Change the value of ServerTokens to Prod. The line should now look like ServerTokens Prod.
  5. Save the changes and exit the text editor.
  6. Restart the Apache service for the changes to take effect. The command to restart Apache may vary depending on your server’s operating system. Common commands include service apache2 restart or systemctl restart httpd.

After following these steps, the Apache version will no longer be disclosed in the server response headers.

Conclusion

Hiding the Apache version using the ServerTokens directive is a simple yet effective security measure for your VPS hosting server. By concealing this information, you reduce the risk of being targeted by attackers exploiting known vulnerabilities in specific Apache versions. Take the necessary steps to secure your server and protect your valuable data.

Summary:

In order to enhance the security of your VPS hosting server, it is crucial to hide the version of the Apache web server software you are using. By setting the ServerTokens directive to “Prod,” you can prevent the disclosure of sensitive information, such as the Apache version, in the server response headers. This security measure helps protect against targeted attacks and reduces the risk of information leakage. To learn more about VPS hosting and secure your server, visit Server.HK.

Recent Posts

  • How to Choose the Right Hong Kong VPS Plan: A Buyer’s Guide for 2026
  • CN2 GIA vs BGP vs CN2 GT: What’s the Real Difference for China Connectivity?
  • Top 5 Use Cases for a Hong Kong Dedicated Server in 2026
  • Hong Kong VPS vs Japan VPS: Head-to-Head for Asia-Pacific Deployments in 2026
  • Hong Kong VPS vs Singapore VPS: Which Is Better for Your Asia Business in 2026?

Recent Comments

No comments to show.

Knowledge Base

Access detailed guides, tutorials, and resources.

Live Chat

Get instant help 24/7 from our support team.

Send Ticket

Our team typically responds within 10 minutes.

logo
Alipay Cc-paypal Cc-stripe Cc-visa Cc-mastercard Bitcoin
Cloud VPS
  • Hong Kong VPS
  • US VPS
Dedicated Servers
  • Hong Kong Servers
  • US Servers
  • Singapore Servers
  • Japan Servers
More
  • Contact Us
  • Blog
  • Legal
© 2026 Server.HK | Hosting Limited, Hong Kong | Company Registration No. 77008912
Telegram
Telegram @ServerHKBot