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
58
votes
3 answers

What is the difference between apache2 reload, restart, graceful?

I am using apache2 for a project and I am wondering what is exactly the difference between these commands: service apache2 restart service apache2 reload service apache2 graceful
VDarricau
  • 2,699
  • 2
  • 19
  • 24
57
votes
6 answers

.htaccess / .htpasswd bypass if at a certain IP address

Is it possible to have an .htaccess/.htpasswd access control setup for a given directory, but if they are from a specific IP address, bypass the login/password authentication? I know you can do something like this in the .htaccess file: order…
Keefer
  • 2,269
  • 7
  • 33
  • 50
53
votes
3 answers

htaccess deny from all

I've been cleaning up my project lately. I have a main .htaccess in the root directory and 6 others. 5 of them ran Options -Indexes which i didn't see anypoint of allowing any Directory viewing so moved that to the main one. so now i only have 2…
Keverw
  • 3,736
  • 7
  • 31
  • 54
52
votes
4 answers

Apache: Restrict access to specific source IP inside virtual host

I have several named virtual hosts on the same apache server, for one of the virtual host I need to ensure only a specific set of IP addresses are allowed to access. Please suggest the best way to do this. I have looked at mod_authz_hosts module…
frameworksnow
  • 907
  • 1
  • 9
  • 11
52
votes
10 answers

OpenSSL not working on Windows, errors 0x02001003 0x2006D080 0x0E064002

Problem: OpenSSL is not working in my Windows environment. OpenSSL repeatedly reports errors 0x02001003, 0x2006D080 and 0x0E064002. Environment: Windows NT x 6.1 build 7601 (Windows 7 Business Edition Service Pack 1) i586 Apache/2.4.4…
Brock Hensley
  • 3,617
  • 2
  • 29
  • 47
51
votes
7 answers

Angular Service Worker SwUpdate.available not triggered

I'm having a hard time integrating angulars service worker into my application. I followed the guide and it works so far. I can create a shortcut on my homescreen and launch into my app. The problem is that my app somehow doesn't update. If I change…
user9973068
50
votes
2 answers

Decrypt password created with htpasswd

I created a protection for my web pages with apache2 in ubuntu. Now I am creating an application in c++ and I want it uses the same file that Apache2 uses for authentification, but my problem is that I don't know how to decrypt the password…
Mils
  • 1,479
  • 3
  • 19
  • 42
50
votes
2 answers

How to run multiple sites on one apache instance

Spent hours going in circles following every guide I can find on the net. I want to have two sites running on a single apache instance, something like this - 192.168.2.8/site1 and 192.168.2.8/site2 I’ve been going round in circles, but at the moment…
Exbi
  • 950
  • 4
  • 12
  • 19
49
votes
5 answers

What is in Apache 2 a "caught SIGWINCH" error?

My server (ubuntu 8.04) LAMP running drupal 6, when there is high traffic, it stops serving pages. A restart of apache2 will not work, so I have to restart the service. I found this message in the apache2 error.log [notice] caught SIGWINCH,…
Geries
  • 21
  • 1
  • 4
  • 9
49
votes
6 answers

ini_set("memory_limit") in PHP 5.3.3 is not working at all

I had this working before : echo ini_get("memory_limit")."\n"; ini_set("memory_limit","256M"); echo ini_get("memory_limit")."\n"; That would input this : 32M 256M on a php script executed by command line. I updated from 5.2 to 5.3, and from now,…
Ant
  • 1,812
  • 5
  • 22
  • 39
49
votes
7 answers

Apache2 virtualhost 403 forbidden?

I'm running ubuntu 13.04 64bit on my desktop, I installed Apache2, MySQL and PHP etc. I wanted to have my web root in /home/afflicto/public_html instead of /var/www. So I went along with this…
Petter Thowsen
  • 1,697
  • 1
  • 19
  • 24
48
votes
8 answers

Mercurial push, abort: authorization failed

I'm having problems with pushing to mercurial repository: $ hg push pushing to https://user:***@hg.domain.com/X_repo searching for changes abort: authorization failed The same URL (with the same credentials) is accessible through the web browser.…
Piotr Byzia
  • 3,363
  • 7
  • 42
  • 62
46
votes
5 answers

How to find what MPM model Apache is using in Linux (worker, prefork or event)

Where I can get information about what kind of MPM Apache is using in my Linux system?
zim32
  • 2,561
  • 1
  • 24
  • 31
46
votes
2 answers

Which one to use : Expire Header, Last Modified Header or ETags

I am running PHP on Apache, and am confused about how to implement server-side caching, in order to make the site load faster. What is the difference between the Expires, Last-Modified and ETag headers, and which one should be used in what…
Avinash
  • 6,064
  • 15
  • 62
  • 95
46
votes
2 answers

SSL on Apache2 with WSGI

I am trying to set up SSL on a Django site I maintain and having a bit of trouble setting up my VirtualHost with SSL. I followed the instructions here but every time I try to restart apache, it tells me it cannot restart because of multiple…
Shane Reustle
  • 8,633
  • 8
  • 40
  • 51