Questions tagged [apache2]

Apache (HTTP Server) /əˈpætʃiː/ is a modular cross-platform web server software with a large variety of features(called modules) including SSL, compression, log, proxy and server-side programming language interfaces like Perl, Python, Tcl, and PHP.

The Apache HTTP Server, commonly referred to as Apache ( /əˈpætʃiː/), is web server software notable for playing a key role in the initial growth of the World Wide Web. In 2009 it became the first web server software to surpass the 100 million website milestone.
Apache was the first viable alternative to the Netscape Communications Corporation web server (currently known as Oracle iPlanet Web Server), and has since evolved to rival other web servers in terms of functionality and performance. Typically Apache is run on a Unix-like operating system.

Apache is developed and maintained by an open community of developers under the auspices of the Apache Software Foundation. The application is available for a wide variety of operating systems, including , GNU, FreeBSD, , , Novell NetWare, AmigaOS, Mac OS X, Microsoft , OS/2, TPF, and eComStation. Released under the Apache License, Apache is characterized as open-source software.

Apache supports a variety of features, many implemented as compiled modules which extend the core functionality. These can range from server-side programming language support to authentication schemes. Some common language interfaces support , , , and . Popular authentication modules include mod_access, mod_auth, mod_digest, and mod_auth_digest, the successor to mod_digest. A sample of other features include SSL and TLS support (mod_ssl), a proxy module (mod_proxy), a URL rewriter (also known as a rewrite engine, implemented under mod_rewrite), custom log files (mod_log_config), and filtering support (mod_include and mod_ext_filter).
Popular compression methods on Apache include the external extension module, mod_gzip, implemented to help with reduction of the size (weight) of web pages served over HTTP. ModSecurity is an open source intrusion detection and prevention engine for web applications. Apache logs can be analyzed through a web browser using free scripts such as AWStats/W3Perl or Visitors.

Virtual Hosting allows one Apache installation to serve many different actual websites. For example, one machine with one Apache installation could simultaneously serve www.example.com, www.test.com, test47.test-server.test.com, etc.
Apache features configurable error messages, -based authentication databases, and content negotiation. It is also supported by several graphical user interfaces (GUIs). It supports password authentication and digital certificate authentication. Apache has a built in search engine and an authorizing tool and supports .

Although the main design goal of Apache is not to be the "fastest" web server, Apache does have performance comparable to other "high-performance" web servers. Instead of implementing a single architecture, Apache provides a variety of MultiProcessing Modules (MPMs) which allow Apache to run in a process-based, hybrid (process and thread) or event-hybrid mode, to better match the demands of each particular infrastructure. This implies that the choice of correct MPM and the correct configuration is important. Where compromises in performance need to be made, the design of Apache is to reduce latency and increase throughput, relative to simply handling more requests, thus ensuring consistent and reliable processing of requests within reasonable time-frames.

The Apache version considered by the Apache Foundation as providing high-performances is the multi-threaded version which mixes the use of several processes and several threads per process.

Unless you are asking about how to write Apache modules, questions with this tag probably belong on serverfault.com rather than stackoverflow.com.

Reference

7951 questions
18
votes
6 answers

how to increase Apache 2 uri length limit

I am getting this error in my apache2 log: [Tue Apr 06 09:00:56 2010] [error] [client A.B.C.D] request failed: URI too long (longer than 8190) What setting can I change to increase this limit?
kevin
  • 4,177
  • 10
  • 32
  • 33
18
votes
1 answer

Tornado is "a relatively simple, non-blocking web server framework written in Python"--can somewhat explain what that means?

This is probably a stupid question, but what exactly is a "non-blocking web server"? All web servers are technically non-blocking, arent they? otherwise how could they handle simultaneous connections? Apache2 achieves this using a combination of…
tm
18
votes
2 answers

Apache Web Server : ProxyPass and ProxyPassReverse

I have scanned through the internet and also stackoverflow and I'm still not sure of the purpose of proxypass and proxypassreverse. Why do we need proxypass (instead of using mod_jk) for apache server to connect to tomcat?
yapkm01
  • 3,590
  • 7
  • 37
  • 62
17
votes
1 answer

Difference between mod_auth_ldap and mod_authnz_ldap

We use LDAP for Subversion access using Apache httpd. We originally had all of our Subversion repositories accessible by all users using the following: DAV svn SVNParentPath /opt/svn_repos AuthType basic AuthName "SVN…
David W.
  • 105,218
  • 39
  • 216
  • 337
17
votes
2 answers

Add mod_rewrite to Docker image httpd:alpine

I have almost no experience with Alpine Linux, to be honest, but I like its approach and therefore want to change that. I'm also relatively new to Docker, so please bear with me if this is a "stupid" question. What I would like to achieve is…
Archivar
  • 273
  • 1
  • 2
  • 9
17
votes
9 answers

SQLSTATE[HY000] [2002] No such file or directory in yii2

I use ubuntu 16.04. PHP Version 7.0.4-7ubuntu2. Apache/2.4.18 (Ubuntu) . PHP extension: mysqli (in phpmyadmin Written). I got Upgrade my ubuntu from 15.10 to 16.04 and I have this error: My project correctly run in my server but I can't run that in…
Saltern
  • 1,305
  • 2
  • 16
  • 42
17
votes
2 answers

Apache 2.4.x manual build and install on RHEL 6.4

OS: Red Hat Enterprise Linux Server release 6.4 (Santiago) The current yum installation of apache on this OS is 2.2.15. I require the latest 2.4.x branch so have gone about installing it manually. I have noted the complete procedure I undertook,…
Aaryn
  • 1,601
  • 2
  • 18
  • 31
17
votes
5 answers

How to install apxs module on apache 2.4.6

I have just used apt-get update and my apache has been updated to 2.4.6. i want to install apxs for compiling modules and i get this error The following packages have unmet dependencies: apache2-prefork-dev : Depends: apache2.2-common (=…
user26
  • 3,937
  • 5
  • 22
  • 22
17
votes
7 answers

Apache & Tomcat: ProxyPass and ProxyPassReverse

I'am having troubles configuring Apache and Tomcat, this is the scenario: I have an Apache Web Server, running and working normally, I can access to this one just typing: http://localhost Also, in this host, I have a Tomcat running and working…
karlos9o
  • 222
  • 1
  • 2
  • 7
17
votes
2 answers

How to disable 301 redirect that adds trailing slash to directory name in Apache

The Apache 2.2.20 automaticaly redirects all requests which are points to directories and has no trailing slash to the same URL with trailing slash, like shown below: GET /some/path/to/dir HTTP/1.1 Host: www.some.org ... 301 Moved…
kruz05
  • 501
  • 1
  • 9
  • 17
16
votes
2 answers

Apache access log automatically set permissions

For some tests I'm doing, I'm required to remotely tail the apache access log via ssh. I can successfully do that only when the permissions are accurately set for the log. I've noticed that once a week, a new apache access.log is created and the…
Parth
  • 1,226
  • 7
  • 28
  • 49
16
votes
1 answer

Move .htaccess content into vhost, for performance

I was wondering if performance can be increased if I move .htaccess file content into a vhost file of apache2? This is the content of my .htaccess Options +FollowSymLinks +ExecCGI RewriteEngine On RewriteCond…
DavidW
  • 5,069
  • 14
  • 46
  • 68
16
votes
4 answers

apache says my DocumentRoot directory doesn't exist

I am using Phusion Passenger to deploy a rails application using apache2 on CentOS 5.5. For some reason, I keep getting this message when I start up apache: > service start httpd Starting httpd: Warning: DocumentRoot [/home/deploy/my_app/public]…
muirbot
  • 2,061
  • 1
  • 20
  • 29
16
votes
2 answers

Apache 2.4.x ip blacklist

I'm looking for an easy way to blacklist IP addresses in Apache 2.4.x. My web site logs ip addresses that tried illegal operations into a text file. I would like to use this text file within Apache to deny all access to all vhosts to this ip list.…
Eric
  • 9,870
  • 14
  • 66
  • 102
16
votes
6 answers

What is the cause of "svn: E195019: Redirect cycle detected for URL"?

Trying to checkout from my SVN repo gives me svn: E195019: Redirect cycle detected for URL ... However, it appears as if this error only occurs when I am behind some (specific) proxy server. As discussed in other post (see tortoise svn giving…
Christian Fries
  • 16,175
  • 10
  • 56
  • 67