Apache allows access to directories to be restricted unless overridden by a valid user name and password. Here you will see how to set it up in your config file, how to create the .htaccess file, and how to generate the password file for it. Denying access in httpd.conf The first step is to deny [...]
As the term IP-based indicates, the server must have a different IP address for each IP-based virtual host. This can be achieved by the machine having several physical network connections, or by use of virtual interfaces which are supported by most modern operating systems (see system documentation for details, these are frequently called “ip aliases”, [...]
It is possible to instruct history to ignore a command when executing a command. # export HISTCONTROL=ignorespace # ls -ltr # pwd # service httpd stop [Note that there is a space at the beginning of service] # history | tail -3 67 ls -ltr 68 pwd 69 history | tail -3
When browsing web files and directory, most bots, without consideration to .htaccess restrictions, have the capability to crawl and sniff files and folders located under your web root folder, even if these files and folders were not visually displayed from your web pages. Take for an example, you displayed a file under http://domain.com/folder1/folder2/folder3/page.html Most bots [...]
The Zend Optimizer is a free runtime application that enables PHP to run the files encoded by the Zend Guard. This can be freely used by anyone looking to run encoded applications. Please download and follow the installation instructions included in the distributions. The simplest way to get a PHP runtime that includes Zend Optimizer [...]
Webalizer is a fast, free web server log file analysis program. It produces highly detailed, easily configurable usage reports in HTML format, for viewing with a standard web browser. It was written to solve several problems with currently available analysis packages. A vast majority of them were written in Perl or some other scripting language, [...]
If you are looking for a way to speed up your PHP pages on Apache, this is the software you want to install. Huge performance gains can be had when using this software to precompile and cache your PHP pages, and it is very simple to install.
As a system administrator, part of your daily duties is to monitor systems for performance and to tune systems where necessary. While there are expensive software products and benchmarking tools that can hone a machine to optimum efficiency, there exist several basic tools within LinuxÂ® that permit the knowledgeable system administrator to gather information and [...]
Subversion depends on a number of third party tools and libraries.Some of them are only required to run a Subversion server; others are necessary just for a Subversion client. This section explains what other tools and libraries will be required so that Subversion can be built with the set of features you want
This tells Apache that you want to permit files to be parsed for SSI directives. Note that most configurations contain multiple Options directives that can override each other. You will probably need to apply the Options to the specific directory where you want SSI enabled in order to assure that it gets evaluated last.
Setting up virtual hosts is fairly straightforward. I will go through the basics of setting up a secure virtual host. In these examples, I use theÂ .crtÂ andÂ .keyÂ file extensions. That is my personal way of avoiding confusion with the various files. With Apache, you can use any extension you choose – or no extension at all. All [...]
Sooner or later, you’ll want to reset your log files (access_log and error_log) because they are too big, or full of old information you don’t need. access.log typically grows by 1Mb for each 10,000 requests. Most people’s first attempt at replacing the logfile is to just move the logfile or remove the logfile. This doesn’t [...]
There are two chief ways to redirect all requests for an entire server to a single location: one which requires the use of mod_rewrite, and another which uses a CGI script. First: if all you need to do is migrate a server from one name to another, simply use the Redirect directive, as supplied by [...]