Category: Apache

Parse .html files for PHP

Create a .htaccsss file containing the following lines:

Read More »

Disable ETags

Create a file at /etc/httpd/conf.d/no-etags.conf with the following: Header unset ETag FileETag None Then of course restart Apache. Here’s a discussion on why you may want to turn ETags off: http://www.askapache.com/htaccess/apache-speed-etags.html

Read More »

Turn on PHP register_globals with .htaccess file

It is of course a bad idea to write code that depends on register_globals for security reason, but sometimes when faced with old code it’s a necessary evil. You can turn on register_globals for a site or directory by adding the following line to your .htaccess file:

Read More »

Apache – Remove Auth From Subdirectory

Assume that you have a folder that is restricted by HTTP Basic Auth but you want to allow access to a sub-folder. Here’s how:

Read More »

Categories

Get a free consultation from Reliable Penguin

Submit the form—or for immediate service call 866-649-7984.