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

Apache-ssl vs mod_ssl

I just purchased an SSL certificate and am considering options for its implementation on my Amazon Elastic Load Balancer, which will leverage Apache2. From what I understand I have two options for implementing an SSL certificate in Apache 2 ---…
Archie1986
  • 1,027
  • 10
  • 16
13
votes
2 answers

See anything wrong with my attempt to get Flask running? (mod_wsgi + virtualenv)

I have a VPS running a fresh install of Ubuntu 10.04 LTS. I'm trying to set up a live application using the Flask microframework, but it's giving me trouble. I took notes while I tried to get it running and here's my play-by-play in an effort to…
danneu
  • 9,244
  • 3
  • 35
  • 63
13
votes
2 answers

PHP 5.3.2, Where do I find php5apache2_2.dll?

I'm upgrading my local version of PHP to 5.3.2, on Windows. I'm running Apache 2.2 right now. I've downloaded the zipped VC6 version of PHP from here: http://windows.php.net/download/ To my dismay, there's no php5apache2_2.dll file anywhere in the…
Sambo
  • 821
  • 3
  • 10
  • 19
13
votes
3 answers

How can I check apache modules version?

How do I get versions of apache modules on debian? I can get loaded modules list by apache2ctl -M - but how do I get their version numbers?
Hurda
  • 133
  • 1
  • 1
  • 4
13
votes
3 answers

Execute Python script from Php

I have a PHP webpage on my raspberry pi with 2 buttons (on and off) The on button button redirects to On.php The off button redirects to Off.php In "/usr/lib/cgi-bin" I have a python script that I would like to execute (script.py) I can perfectly…
ChubbyChocolate
  • 246
  • 2
  • 3
  • 13
13
votes
2 answers

Varnish appears to be working but max-age=0

isvarnishworking.com is letting me know that Varnish appears to be responding at that url, but the Cache-Control header's "max-age" value is less than 1, which means that Varnish will never serve content from cache at this url. The max-age…
Toni Michel Caubet
  • 19,333
  • 56
  • 202
  • 378
13
votes
4 answers

CGI script downloads instead of running

I'm running apache2 server. CGIHTTPServer is running in directory /mnt/hgfs/wind/BTech_BTP/BTP/code/final_code/. I'm using the url http://localhost:8000/test/www/adder.html. I have three file in ../final_code/test/www directory. adder.html…
suri
  • 327
  • 1
  • 4
  • 14
13
votes
4 answers

Can Apache httpd be made to log errors to console instead of log files under Windows?

I'm doing infrequent development with Apache/PHP on my Windows machine so I've opted to run apache as a console process instead of a service. It would be nice if errors could be logged to the console window instead of a logfile so I can see them…
Vilx-
  • 104,512
  • 87
  • 279
  • 422
13
votes
3 answers

Apache fails to start on Vagrant

In my Vagrant environment I have a guest Ubuntu Virtualbox with a LAMP with default settings. I have my source code on the host machine in the same folder as my Vagrantfile. So on the guest Ubuntu I can access the files in the mounted /vagrant dir…
Ruslan Bes
  • 2,715
  • 2
  • 25
  • 32
13
votes
1 answer

Using apache config and htaccess to dynamically set config vars for dev and production

Short Summary I need to be able to set an environment variable in the Apache site config that defines if the site is dev, beta or production. The htaccess file in the web root will define config variables for the website (database credentials,…
Cory Baumer
  • 397
  • 3
  • 16
13
votes
8 answers

How do I ignore the Perl shebang on Windows with Apache 2?

I have set up a local Perl web environment on my Windows machine. The application I'm working on is originally from a Linux server, and so the shebang for source .pl files look like so: #!/usr/bin/perl This causes the following error on my Windows…
Nick Bolton
  • 38,276
  • 70
  • 174
  • 242
13
votes
2 answers

Microsoft Azure Apache Web Server Not Accessible

I've created literally dozens and dozens of web servers in my day, but this is my first attempt with Windows Azure and I'm running into some problems. I just started migrating from AWS recently. First of all, I'm running Ubuntu 13.04. Firewall…
Michael Hawkins
  • 2,793
  • 1
  • 19
  • 33
13
votes
1 answer

mod_wsgi working directory and user

I'm running flask on mod_wsgi. my flask app, which is on /var/www/app receives some file from user and saves it to /var/www/app/tmp directory. However even after all chmod and chown(thought it was a permission problem), I was unable to reach that…
thkang
  • 11,215
  • 14
  • 67
  • 83
13
votes
2 answers

Apache http server problems

I am using Apache version 2.2.20 (ubuntu) and attempting to use a custom httpd.conf setup however I am getting the following error message and would appreciate any guidance that can be given to me. I'm part of a dev team and was given this custom…
OrwellHindenberg
  • 4,988
  • 8
  • 38
  • 58
12
votes
3 answers

How can I uninstall an apache2 module?

It looks like I installed the wrong version of the module using apxs2. Once it's disabled (a2dismod), how do I remove it so I can install the correct version? Seems elementary, yet...somehow...I'm finding nothing on Google, IRC, etc.
mlissner
  • 17,359
  • 18
  • 106
  • 169