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

ProxyHTML to rewrite URL

I've got 2 apache servers set up. One on port 80 and another on port 8077. I'm wanting to see everything on the server on 8077 via a reverse proxy. At the moment I've got: ProxyPreserveHost Off ProxyHTMLInterp On ProxyPass /translate/…
Andrew
  • 7,548
  • 7
  • 50
  • 72
23
votes
5 answers

.htaccess for cakephp

I'm trying to get a CakePHP application to work. For this, I've set up a brand new Debian installation, updated the configuration and put everything in /var/www, which has the following content: app cake .htaccess index.php vendors The .htaccess…
MrG
  • 5,277
  • 17
  • 48
  • 66
22
votes
1 answer

Apache2 config file path on Ubuntu.

can someone tell me the path of the Apache2 config file on Ubuntu. Thanks!
Amal Antony
  • 6,477
  • 14
  • 53
  • 76
22
votes
4 answers

.htaccess: GET variables are lost in rewrite

Apparently, my .htaccess rewrite eats up all $_GET-variables on my page: When accessing the URL http://192.168.1.1/welcome/test?getvar=true and running var_dump($_GET) in my index.php file, I get this this output: array '/welcome/test' => string ''…
Industrial
  • 41,400
  • 69
  • 194
  • 289
22
votes
2 answers

Apache2 Reverse Proxy to an end-point that requires BasicAuth but want to hide this from user

Basically my scenario is that I have an internal website that requires a SINGLE hard-coded username and password to access (and this can't be turned off, only changed). I am exposing this website through a reverse proxy for various reasons (hiding…
Bo Jeanes
  • 6,294
  • 4
  • 42
  • 39
22
votes
2 answers

How to Simulate & Test URL rewrite rule in Apache 2, when on sharehosting RewriteLog is disabled/unallowed in .Htaccess?

How to Simulate & Check a URL rewrite rule in Apache 2, when on sharehosting RewriteLog is disabled and or NOT allowed to be set in .Htaccess? In other words, are there any tools/simulators to test an url rewrite independantly of hosting, to check…
Sam
  • 15,254
  • 25
  • 90
  • 145
22
votes
1 answer

What is the difference between ServerName and ServerAlias in apache2 configuration?

I am configurating my apache2 server and I wonder whats the difference between ServerName and ServerAlias. Is the ServerName always a name without www as like google.de and the ServerAlias is www.google.de Even if it's like this, I don't get it…
RayofCommand
  • 4,054
  • 17
  • 56
  • 92
22
votes
3 answers

Cache validator for Google Webfonts

So I'm creating an ultra optimized site, and my page load speed with https://developers.google.com/speed/pagespeed/ is 99 (out of 100). The only thing keeping me away from full hundred is this: By specifying a cache validator - a Last-Modified or…
user1537415
22
votes
1 answer

Apache2 warning about NameVirtualHost directive

Can someone help me to understand why I receive the following errors when restarting my apache2 webserver: [Fri Nov 09 09:46:43 2012] [warn] VirtualHost 172.30.30.12:443 overlaps with VirtualHost 172.30.30.12:443, the first has precedence, perhaps…
DanielAttard
  • 3,467
  • 9
  • 55
  • 104
22
votes
7 answers

sys_get_temp_dir in shared hosting environment

Note: This could also fit in superuser. I am setting up PHP 5.3.10 on a shared host with apache2 mpm itk and open_basedir in a way, that each user may not see or change the files of another user. In the apache2 vhost settings, I add the appropriate…
Lars
  • 5,757
  • 4
  • 25
  • 55
21
votes
1 answer

Apache port forward

I have apache couchDB active on http://localhost:5984/ which i need to access at http://localhost:80/couch/. I need to setup a reverse proxi for this. Need help with the configuration settings. PS: Whats the best resource to learn about apache?
Jaseem
  • 2,236
  • 6
  • 28
  • 35
21
votes
3 answers

Enable PHP support for postgresql in Ubuntu 11.04 server

I've installed Apache2 with PHP5 support and everything works there. I've installed PostgreSQL and am able to connect to it using the terminal and execute SQL statements. PROBLEM: I can't get a working connection between my PHP scripts and the…
Adam
  • 3,668
  • 6
  • 30
  • 55
21
votes
4 answers

Rails Passenger problem with Apache2

I'm trying to setup a ruby on rails server on ubuntu10.10 with apache2 and mod_rails (Phusion Passenger). I already installed ruby 1.9.2-p0 and rails 3.0.8 and installed Passenger with the passenger-install-apache2-module and the passenger gem…
Andre Schweighofer
  • 2,759
  • 1
  • 26
  • 25
21
votes
2 answers

curl: provide user and password for apache .htaccess file

I am using cURL to test some RESTful APIs. Some of these APIs are served from an Apache machine, and protected with user/password combination using simple .httaccess files. Is there a way to provide cURL with a username / password combination as…
Adam Matan
  • 128,757
  • 147
  • 397
  • 562
20
votes
5 answers

Apache shutdown - Couldn't grab mutex

For some reasons unknow to me, Apache is crashing. This is the apache log at the moment of the crash: [Sat Jun 02 02:38:05.196006 2018] [mpm_prefork:emerg] [pid 1122] (43)Identifier removed: AH00144: couldn't grab the accept mutex [Sat Jun 02…
Preciel
  • 2,666
  • 3
  • 20
  • 45