Apache

Password protect Parent and Allow subdirectory using .htaccess

Tags: .htaccessparentpassword protectsub-directory

Published on : September 24, 2009 by

Password protect Parent and Allow subdirectory  using .htaccess

To  password protect a directory htaccess password protect rules can be added in the directory AuthUserFile /path/to/.htpasswd AuthName “This is Hasten secret area” AuthType Basic require valid-user To create .htpasswd file  use the following command htpasswd -c .htpasswd  <user> You will be prompted for password . Once it is done, the file will be created. […]

Continue Reading...


Viewing Webalizer for Add-on Domains outside the control panel

Tags: addon-on domaincPanelwebalizer

Published on : September 17, 2009 by

Viewing Webalizer for Add-on Domains outside the control panel

To access Webalizer for addon domain without loging in to the Cpanel  can be done by following the steps 1. Login to the server using SSH 2.  Then  change directory to the Document Root of the addon domain cd /home/username/public_html/AddondomainFolder 3.  In the desired folder create a symbolic link ln -s /home/username/tmp/webalizer/addondomain.maindomain.com  webstats 4. Change […]

Continue Reading...


500 Internal Server due to low RLimitMem value

Published on : August 13, 2009 by

500 Internal Server due to low RLimitMem value

Sometimes our clients have come across the issue that their website was causing 500 Internal Server error while loading the PHP pages. On investigating further we had found that the error log was saying the error below /usr/bin/php: error while loading shared libraries: libpthread.so.0: failed to map segment from shared object: Cannot allocate memory Our […]

Continue Reading...


Redirecting a domain to a subfolder using .htaccess.

Tags: .htaccessdomainmod_rewriteRedirectsubdomain

Published on : July 29, 2009 by

Redirecting a domain to a subfolder using .htaccess.

To redirect domain to a subfolder you can create  a new .htaccess file in the document root of the domain. Then Edit .htaccess file and include the following entries: RewriteEngine On Options +FollowSymlinks RewriteBase / RewriteCond %{HTTP_HOST} www.domainname [OR] RewriteCond %{HTTP_HOST} domainname RewriteCond %{REQUEST_URI} !subfolder/ RewriteRule ^(.*)$ subfolder/$1 [L]

Continue Reading...


Win32 style directory indexing in apache – Date and Size along with the name

Tags: Apachedat and size in indexingdirectory indexfancy indexing

Published on : July 20, 2009 by

Win32 style directory indexing in apache – Date and Size along with the name

Inorder to have win32 styled Apache directory indexing , you need to make sure that mod_autoindex module is installed and active in the server. In cPanel 11 servers, it will have the modules enabled in, /usr/local/apache/conf/extra/httpd-autoindex.conf So for the client who want to have the fancy directory indexing to be enabled, just add the below […]

Continue Reading...


Let's Connect

Get new updates

Categories

$0.000 items