How to enable .htaccess in Apache HTTP server

Question: I wanted to use .htaccess file to configure something for my website running on Apache web server. But the .htaccess file I placed in the website’s document root directory is not working. How can I enable .htaccess in Apache web server? An .htaccess file is a directory-level configuration file for Apache HTTP server, which […]
Continue reading…

 

What is the Apache error log location on Linux

Question: I am trying to troubleshoot Apache web server errors on my Linux system. Where is the Apache error log file located on [insert your Linux distro]? Error log and access log files are a useful piece of information for system admins, for example to troubleshoot their web server, protect it from various malicious activities, […]
Continue reading…

 

How to turn off server signature on Apache web server

Question: Whenever Apache2 web server returns error pages (e.g., 404 not found, 403 access forbidden pages), it shows web server signature (e.g., Apache version number and operating system info) at the bottom of the pages. Also, when Apache2 web server serves any PHP pages, it reveals PHP version info. How can I turn off these […]
Continue reading…