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
2
votes
1 answer

Run both Django and PHP application in Apache

I'm trying to host Django and PHP(wordpress) app in Apache domain.com, should point to Django app domain.com/wp, should point to wordpress app Here is my 000-default.conf in /etc/apache2/sites-available DocumentRoot…
Satish Ravipati
  • 1,431
  • 7
  • 25
  • 40
2
votes
1 answer

Custom authorization support in Apache webserver

I would like to know if I can hook in a custom authorization support in apache2 webserver. What I want to do is, based on the user logged in, I want to disable few HTML pages being served to UI. The logic to check permissions to static resources…
Tushar Tarkas
  • 1,592
  • 13
  • 25
2
votes
0 answers

Apache error "Parent: child process exited with status 3221225477 -- Restarting." No PHP or MySQL

I'm running Apache 2.2.14 on Windows Server 2003, without PHP or MySQL, basically to proxy as a web server for a Java web app. Every few hours or so Apache restarts with a message [notice] Parent: child process exited with status 3221225477 --…
anikitin
  • 163
  • 1
  • 8
2
votes
0 answers

Apache2 RewriteRule - How to apply the rules to a directory, not just files

I have a series of rules configured in my apache2 conf file that look like this: RewriteEngine On LogLevel alert rewrite:trace3 RewriteCond %{HTTP:Accept} text/xml [NC] RewriteCond %{REQUEST_URI} !\.[a-zA-Z0-9]{3,4} RewriteCond %{REQUEST_URI}…
A Sims
  • 107
  • 1
  • 10
2
votes
1 answer

How to take control of a connection in an apache c module

I am writing an apache module. I need to recieve arbitrary data from the client after authentication. In principle my solution requires me to write a loop that allows the program to read and write from a socket — or the apache underlying mechanism…
Iharob Al Asimi
  • 52,653
  • 6
  • 59
  • 97
2
votes
1 answer

Rewrite rule containing double slash not matched

I'm using this rewrite rule to redirect my search requests: RewriteRule ^search/([^/\.]*)/([^/]+)/?$ index.php?search=$1&additional=$2 [L] This rule works fine for search/search/add but it gives me a page not found for search//add (empty…
Jofkos
  • 739
  • 1
  • 9
  • 27
2
votes
1 answer

Problem with Django using Apache2 (mod_wsgi), Occassionally is "unable to import from module" for no apparent reason

I have put my Django web site up to my web server and have it set up using apache2 and mod_wsgi.. everything works fine most of the time but occasionally it will just give the error that it can't import a module (usually from my views file).…
Rick
  • 16,612
  • 34
  • 110
  • 163
2
votes
1 answer

Start service automatic inside Docker container

I'm trying to start a service like Apache2 automatic inside a Docker container My Dockerfile: FROM ubuntu:14.04 RUN apt-get update RUN apt-get -y install apache2 ADD ./startup.sh /opt/startup.sh RUN chmod +x /opt/startup.sh CMD ["/bin/bash",…
Fred Bongers
  • 267
  • 1
  • 6
  • 15
2
votes
1 answer

should apache default page show up when no sites are enabled?

When I do this : sudo a2dissite I get Your choices are: meaning all sites are disabled. When I put my IP local network address in the browser, I get the default Apache page. http://192.168.1.101/ (putting this in the browser address bar gets me…
jason
  • 4,721
  • 8
  • 37
  • 45
2
votes
2 answers

best way to setup a webhook to restart apache for a django server

I first tried to use django and then django-webhooks to call a shell script that restarts the server. This didn't work, because the webpage hangs when the server restart is called, as django is reloaded. Then I used fastcgi and python alone to…
matt snider
  • 4,013
  • 4
  • 24
  • 39
2
votes
2 answers

PHP APC causing kernel panics

We are running APC as an opcode level cache, and have been getting kernel panics (related to shared memory segment). I thought that anything running in the user space (PHP, APC, Apache) could not cause a kernel panic. I have managed to replicate…
Yninja
  • 21
  • 1
2
votes
1 answer

Enabling dtrace on Apache on FreeBSD

HI i am using freeBSD as my operating system.I have apache version 2.2.16 installed on it.I want to make this dtrace enabled.How can i do this.Thanks in advance
gaurav
  • 149
  • 1
  • 2
  • 11
2
votes
0 answers

Duplicate a client request to multiple servers

Suppose I have two server endpoints: http://server1/endpoint http://server2/endpoint and whenever an URL /consumedata is requested by the client it should bind the request/response to server1/endpoint and also copy the request to server2/endpoint…
2
votes
1 answer

Unable to connect to apache on el capitan mac error AH00526: Syntax error on line 1 of -c/-C directives:

I recently upgraded to php56 on Mac OSX El Capitan. Now I am unable to run apache. I am getting:- This site can’t be reached localhost refused to connect. when trying to run localhost apachectl -k restart command gives error saying httpd not…
2
votes
0 answers

How to set apache web server to generate rolling log files?

i have my application installed on a windows server, under apache web server. This project is facing a performance issue now, It is responding very slow. Web application is installed in Jboss, and apache webserver communicates with jboss via AJP…
Vijay Shanker Dubey
  • 4,308
  • 6
  • 32
  • 49