Crmgo Blog

apache

← Blog / Linux

apache

Posts: 7

htaccess Rewrite

htaccess Rewrite

· apache

Metacharacters Example: Used to define character groups or "labels" in a pattern. For example, labels for the beginning or end of a line. \ The "escaping" backslash. The character following it is treated as a regular character, not a special one. The \ character is placed before special characters if they are needed in their original form...

.htaccess: Save, Don't Open

.htaccess: Save, Don't Open

· apache

1. AddType application/file .xml 2. <FilesMatch "\.(?i:xml)$"> ForceType application/octet-stream Header set Content-Disposition attachment </FilesMatch>

http.conf Directives

http.conf Directives

· apache

ServerRoot The path to the Apache HTTP server executable files. Listen Sets the port and IP address that Apache listens on. By default, all browsers attempt to open an HTTP connection to the Apache server via port 80. If you set a different port number, such as 9031, then to open a page in…

Using .htaccess and .htpasswd files

Using .htaccess and .htpasswd files

· apache

to set a password for access to specific pages or sections of your website. First, create a .htaccess file in the desired subdirectory, and add the following content: AuthType Basic AuthName "Access is Denied. Enter password" AuthUserFile /path_to_file/.passwords <Limit GET POST> Require valid-user

Monitoring Apache with the mod_performance module

Monitoring Apache with the mod_performance module

· apache

mod_performance What this module is. It is a standard Apache 2.x module for Linux. According to its documentation: the module is designed to collect and accumulate statistics on resource usage (CPU and memory, script execution time) by the Apache 2.2 web server; the module allows you to analyze the collected…

.htaccess

.htaccess

· apache

Change the encoding on the site: AddDefaultCharset utf-8 AddDefaultCharset cp1251