Posts

Showing posts with the label Apache

How to add sub domains with xampp

Use bellow steps to used sub-domain with xampp. 1. Open your xmapp httpd.conf file. ex : D:\xampp\apache\conf \ httpd.conf {your xampp location dir} \apache\conf \httpd.conf 2. In this example I used two sub-domains. # SUBDOMAIN 1 <VirtualHost *:89> DocumentRoot "D:\xampp\htdocs\sub" ServerName asubdomain.localhost <Directory "D:\xampp\htdocs\sub">     Options FollowSymLinks Indexes     AllowOverride All     Order deny,allow     allow from All </Directory> </VirtualHost> # SUBDOMAIN 2 <VirtualHost *:89> DocumentRoot "D:\xampp\htdocs\sub2" ServerName bsubdomain.localhost <Directory "D:\xampp\htdocs\sub2">     Options FollowSymLinks Indexes     AllowOverride All     Order deny,allow     allow from All </Directory> </VirtualHost> 3. Then go to C:\windows\system32\drivers\etc and open "host" file in notepad ( n...

Force Files to Download (Not Open in Browser) using htaccess

Remove File Extention from URLs using htaccess

That little bit will make  http://blogger.com/about.php into   http://blogger.com/about

Force Correct content-type for XHTML Documents using htaccess

Reference

Locations of Common Log Files on cPanel Servers

Apache Apache is the web server that is typically utilized by cPanel.  On cPanel servers Apache does write to a rather high number of logs as each site has its own traffic log. The access_log is used to log all http requests to ether the hostname of the server, requests directed at the servers IPs, or sites that resolve to the server but are no longer hosted on it. On cPanel servers all Apache errors, regardless of site, are logged in the error_log.