Apache : Mod_Rewrite and Regular Expressions

Posted by Jay     Tags: , 4 November, 2009    2,328 views    (0) Comment

I guess I should start by describing a regular expression. (They aren’t too scary once you get to know them.) A regular expression is basically a small piece of code that checks for patterns. The pattern can range from a single character that matches to absolutely everything. Regular Expression Pre-qualifier… these definitions are how regular expressions are generally used in .htaccess files and though most definitions will be applicable globally, there are some that may not. Read Full Article (Click here)...

Categories : Web & Scripts Tags : ,

Hosting Multiple sites on a single IP address using apache Mod_rewrite.

Posted by Jay     Tags: , 26 September, 2009    3,297 views    (0) Comment

This is my notes, it will be refined very soon. Mod_rewrite, for those that don’t know, is a powerful module that allows you to handle incoming URI requests and more. This article will explain the use of and advantages of the MaxRedirects option. Web hosting companies that offer the mod_rewrite module should take note of these reasons to upgrade to the latest Apache release. Keeping your Web server up-to-date is a must. Hosting companies that do not offer the mod_rewrite module are Read Full Article (Click here)...

Categories : Technology, Web & Scripts, wordpress Tags : ,

Apache/PHP: $_FILES Array is returning empty. How to resolve?

Posted by Jay     Tags: , , 16 September, 2009    4,101 views    (3) Comment

I came across the frustrating issue of the day: A file upload form that’s been working for a long time, suddenly fails. No file uploads work on the entire apache installation. Checking the drive space in the /tmp folder, even though GB is left, freeing up space reveals that if there isn’t a lot of free space left for /tmp, the $_FILES array just goes empty without further explanation. No useful error messages or anything. $ _ FILES[”$Varname”][”tmp _ name”]; What are the possible Read Full Article (Click here)...

Categories : Web & Scripts, Web Blog! Tags : , ,

What is the issue with Apache internal dummy connection?

Posted by Jiltin     Tags: 12 June, 2009    1,703 views    (2) Comment

You see several occurrences of this line in the “/var/log/httpd/access_log” file. ::1 – - [29/Nov/2006:17:39:04 -0800] “GET / HTTP/1.0″ 200 14083 “-” “Apache/x.y.z. (Fedora) (internal dummy connection)” or ::1 – - [29/Nov/2006:17:39:04 -0800] “GET / HTTP/1.0″ 200 14083 “-” “Apache/x.y.z. (CentOS) (internal dummy connection)” What does this mean? It is an internal apache mechanism to handle the Read Full Article (Click here)...

Categories : Web & Scripts, wordpress Tags :

Apache help Tips – How to Disable directory indexes?

Posted by Jiltin     Tags: , , 27 March, 2009    7,539 views    (0) Comment

Default apache server configuration file (httpd.conf) comes with directory index listing. It is often desirable not to list indexes so that you avoid unauthorized uses/visits to your site’s sub directory. To prevent the server from showing a listing of the existing files in case there is no index (as defined by DirectoryIndex) in one folder. In my opinion if you need this enabled then you should enable it only on some particular directory where you need it and disable it server wide. Read Full Article (Click here)...

Categories : Scripts Unix, Web & Scripts Tags : , ,