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

What is Loglevel debug?

My error.log file for my site says Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer:…
Ben
  • 60,438
  • 111
  • 314
  • 488
14
votes
4 answers

FPM with apache2 not working (Permission denied)

I'm trying to set up a debian web server with apache, fastcgi and fpm, but I'm getting exasperate. As soon as i deactivate mod_php I get following error: [Thu May 22 12:16:10 2014] [error] [client xxx.xxx.xxx.xxx] (13)Permission denied: FastCGI:…
catweazle
  • 153
  • 1
  • 1
  • 6
14
votes
8 answers

Munin Dynazoom not working on Ubuntu

I recently installed Munin on my machines. I got everything to work and the data is actually being drawn on the graphs! :) But, for some reason, when I click on each individual graph, it brings me to the dynazoom page but it's all plain text with no…
deadlock
  • 7,048
  • 14
  • 67
  • 115
14
votes
1 answer

Flask hello world using apache and mod_wsgi shows files in webroot only

I'm attempting to run the basic hello.py from the flask site over apache2 using wsgi. Here is what my code looks like: /var/www/flask_dev/hello.py from flask import Flask app = Flask(__name__) @app.route('/') def hello_world(): return 'Hello…
David
  • 2,080
  • 5
  • 29
  • 44
14
votes
3 answers

How to disable mod_deflate in apache2?

How can I disable mod_deflate in Apache2 For files in a specific directory OR For all files that have extension of, for example .py?
wakandan
  • 1,099
  • 4
  • 19
  • 27
14
votes
4 answers

Parse Apache2 Error logs with Grok for Logstash

Im trying to parse my apache2 error log and im having a bit of trouble.. It doesnt seem to be matching the filter. Im pretty sure the timestamp piece is wrong, but im not sure, and i cant really find any documentation to figure it out. Also, is…
Ascherer
  • 8,223
  • 3
  • 42
  • 60
14
votes
2 answers

VirtualHost with wildcard VirtualDocumentRoot

I'm trying to create a fallback for my virtual hosts. My configuration looks like this: # Fetch all pre-defined hosts Include "conf/extra/vhosts/*.conf" # Fallback NameVirtualHost *:80 Options Indexes…
Mike Rockétt
  • 8,947
  • 4
  • 45
  • 81
14
votes
3 answers

4GB HTTP File Uploads Using jQuery-File-Upload, Apache and PHP

This problem seems directly related to the infamous 2GB limit and I'm not sure at this atge if its a 32bit PHP issue. I've seen the comments related to HTTP not being designed for such large files. However, I would rather exhaust this direction…
Diplonics
  • 435
  • 1
  • 4
  • 12
14
votes
8 answers

tortoise svn giving me "Redirect cycle detected for URL 'domain/svn'"

I want to achieve a svn-root in /var/svn and repositories(projects) in there. I could get it to work in the browser (http://domain/url gives me "Collection of repositories") but the TortoiseClient is giving me the error mentioned in the title. I set…
Sebastian Saip
  • 452
  • 2
  • 5
  • 17
14
votes
3 answers

For php flush - how to disable gzip for specific file?

I have a ajax call to somefile.php . i want the php script to do a simple task and than send back data to the user, and only than do very time consuming tasks. so i need to flush the output after the first simple task. it doesn't work, probably…
Moshe Shaham
  • 15,448
  • 22
  • 74
  • 114
13
votes
1 answer

Virtual hosts on apache with URL's like subfolders

I am interested in, if I can have vhosts on apache with domain names like: http://something.com/something or http://{server-ip-address-here}/something ? I am using Apache 2.2.20 on Ubuntu Server, thats my home server and I am testing some stuff…
Jibla
  • 813
  • 2
  • 8
  • 12
13
votes
7 answers

Clean reinstall and fix of httpd service error on macos

I'm still having some problems on using httpd (aka Apache2) after the update of my MacOs on BigSur. I tried to make a clean reinstall of apache2 using the brew httpd services (like said in a lot of tutorials) but it still not working. I make a…
ceradini
  • 455
  • 1
  • 3
  • 11
13
votes
4 answers

Apache HTTPS to HTTPS Redirection

We have a client server hosting our web application using Apache 2.2 & Tomcat 6 in RHEL. I have setup apache re-write rule for http to https redirection and it works fine. We have two DNS names that are used to access the same application. Test1.com…
Noman Amir
  • 933
  • 3
  • 15
  • 30
13
votes
3 answers

Apache start libphp7.3.so not found

I have Install php 7.3 and apache2 but when I try to start apache2 , I have this error : service apache2 start apache2: Syntax error on line 146 of /etc/apache2/apache2.conf: Syntax error on line 3 of /etc/apache2/mods-enabled/php7.3.load: Cannot…
Sam
  • 1,129
  • 2
  • 10
  • 24
13
votes
6 answers

Match / Deny access to all subdirectories using apache2 server configuration

How can one deny access to all subdirectories of a given directory? (While allowing to manually modify the access rights for single items in the directory tree.) I tried to do it with the directives. The server configuration…
coldfix
  • 6,604
  • 3
  • 40
  • 50