Check hits for single page from apache logs

#grep -roh contentname path for logs file | wc -w  

How to redirect the website to another domain through apache conf

If you have new website and you want to redirect that website to another domain url you need to add the virtual conf in apache configuration file and reload the … Continue Reading →

How to redirect the website through .htaccess

In .htaccess you need to add the below content and say the file.   Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} ^yeswedo\.in RewriteRule ^(.*)$$1 [R=permanent,L]   Note: Be sure that … Continue Reading →

Apache Interview Questions & Answers

Q: – What is location of log files for Apache server ? Ans- /var/log/httpd Q: – What are the types of virtual hosts ? Ans- a. name-based b. IP-based. Name-based … Continue Reading →