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

mod_authz_core denied : Laravel 5 + Apache 2.4 + Xampp: showing 403, using ElCapitan

I have a new Laravel 5 project on my Mac. Everything from github is set up and should work. It actually works on http://localhost:8000/ after running this command: php artisan serv But, i am seeing a 403 error when I type myprojectname.local in the…
guillim
  • 1,517
  • 1
  • 12
  • 16
2
votes
2 answers

Apache 2.2 ProxyPass with Weblogic - Can't use root

I'm trying to configure an Apache 2.2 proxy server to point to multiple Weblogic instances. I'm doing fairly well with everything but a minor point. I can get this to work: ProxyPass /QA http://IP:PORT/ by going to http://IP:PORT/QA But I can't…
Liz N
  • 21
  • 1
  • 2
2
votes
1 answer

Elastic Beanstalk Docker - How to get container logs

I have a Apache2 perl application running in a docker container in Elastic Beanstalk, and I'm having problems getting at the Apache2 logs. This is my Dockerrun.aws.json file... { "AWSEBDockerrunVersion": "1", "Ports": [ { …
user1751825
  • 4,029
  • 1
  • 28
  • 58
2
votes
2 answers

CakePHP Installation Broke (Probably Apache2 Problem)

I tried to install CakePHP on my home Ubuntu 10.04 desktop for development/testing purposes, and I believe I have gone through all the appropriate steps. However, I am still running into the problem that my layout is broken. I believe this is a…
0x1F602
  • 865
  • 5
  • 22
2
votes
0 answers

mod_proxy missing in apache2 installation

I have an issue with my apache2 configuration for HHVM. I'm on Debian 7. The problem is verry simple : mod_proxy are missing in my apache2 installation (/etc/apache2/mod-availables/). I've reinstall apache2 a several time but nothing do to mod_proxy…
bbichero
  • 66
  • 1
  • 7
2
votes
1 answer

Redirect loop in Apache

I am trying to forward the location of a directory, e.g., www.example.com/dir to a file in itself, e.g., www.example.com/dir/file.php. The following is my .htaccess configuration: Redirect /dir http://example.com/dir/file.php. I am getting a…
user3376899
  • 143
  • 3
2
votes
2 answers

Linux - Cannot hide Apache version of vhosts

I actually set up vhost with apache2 and i've a problem with the hardening of my vhost; the apache version and server OS is displayed in the header. When i use the main server link, the version is hidden. Help please. Thanks.
usta
  • 23
  • 3
2
votes
1 answer

Différence between installing geoip as a PHP module VS as an apache2 module

If apache module is installed, you get country code with : $_SERVER['GEOIP_COUNTRY_CODE'] With the PHP module/library, you use : geoip_country_code_by_name($_SERVER['REMOTE_ADDR']) What is the difference (performance etc...) between these 2…
fred727
  • 2,644
  • 1
  • 20
  • 16
2
votes
1 answer

Symfony3 Export To Production

I have a server running on apache2 with some virtual hosts and I want to deploy a Symfony3 application on it. However, I cannot deploy it correctly to the production environment, it works perfectly on development environment. Whenever I do…
Karl-John Chow
  • 775
  • 2
  • 8
  • 26
2
votes
2 answers

Apache on Windows cant find php extensions

I have Apache 2.4 and php installed on Windows Server 2012. Im trying to load the php_ldap.dll extension. Here's what Ive done: In php.ini I set the following: extension_dir = "C:\php\ext" extension=php_ldap.dll Then, I made sure the dll was…
Wesley Smith
  • 19,401
  • 22
  • 85
  • 133
2
votes
1 answer

AH00526: Syntax error line 51 modsecurity_crs_16_session_hijacking.conf

I am configuring modsecurity-crs for my apache2 server running on debian 8 jessie. After installing modsecurity and making symbolic links for both base_rules and optional_rules, apache2 cannot restart. Using sudo journalctl | tail shows the error…
2
votes
1 answer

How can I connect to localhost from a virtual machine?

I'm running some virtual machines using VMware workstation on my PC (using win 7), also I'm using a basic WAMP installation. I'm trying to connect to my Win7 Apache server from any of the VMs. I tried changing the following line on my httpd.conf…
Javier Villanueva
  • 3,886
  • 13
  • 48
  • 80
2
votes
2 answers

Apache authentification - letting users from X IP address in WITHOUT required password, others must type password

now my apache configuration looks like this: AuthType Basic AuthName "myweb" AuthUserFile /etc/apache2/.passwords Require user mw It allows everyone to web, but require password. I would like to…
Adriana
  • 8,464
  • 13
  • 36
  • 37
2
votes
1 answer

apache2 allow only user 'x' to open url 'example.com/private/x'

I have a question about access control in Apache 2. I don't think it's relevant, but I'm running it on a Raspberry Pi 2 with Raspbian. There are multiple users that can use the website. However, there is one folder in which every user has his own…
Desirius
  • 220
  • 1
  • 8
2
votes
2 answers

Serving the same Symfony2 application from two different domains

We have a Symfony2 application that we wish to serve from two different domains. Here's how we want it to work; Suppose we have two domains and two virtual hosts set on our server (we're using apache) - for the sake of argument, let's call them…
Andrew Battye
  • 418
  • 5
  • 17