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
2 answers

How can I create a user using htdigest without prompting for password

I'm writing a DockerFile to build an image with apache2 and u2fval, and I need to create credentials for one user using apache2 digest. But the command: htdigest -c /whatever/myfile.digest "realm" user will always ask user for password, is there a…
2
votes
1 answer

apache .htaccess rewrite rule - redirect example.com/login(/) to /login.php

I want do redirect /login to /login.php My current rewrite rule is: RewriteBase / RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^login login.php…
pfMusk
  • 769
  • 1
  • 7
  • 16
2
votes
1 answer

Running VNC from PHP on ubuntu16.04 error: getpassword error: Inappropriate ioctl for device

I'm trying to start up vnc4server from my php. So far it's running from a start.sh with this in vncserver -geometry 1000x800 -depth 24 export HOME=/home/psych cd /home/psych/mw3/Infected/ screen -d -m bash -c "export DISPLAY=:1 ; wine…
Jake
  • 21
  • 3
2
votes
0 answers

Proxypass exclude URLs that ends with a pattern

I am trying to configure apache2 proxy settings to Exclude proxying the URLs that has trim=1 flag such that the content is served by apache itself. Proxy URLs that do not have trim=1 flag to a URL http://1.2.3.4:8080/mywebapp/ I have the…
cucucool
  • 3,777
  • 8
  • 48
  • 63
2
votes
2 answers

Using Gzip/Deflate with Codeigniter for better performance

I'm using Codeigniter a PHP framework and apache2. I have enabled Gzip and deflate mod in apache2 and its showing phpinfo(). When I run Yslow it shows "Grade F on Compress components with gzip". Even I changed the config.php of…
Mukesh Yadav
  • 2,256
  • 2
  • 33
  • 51
2
votes
1 answer

How do you add a theme to PhpMyAdmin?

I've recently installed PhpMyAdmin on the web server I'm currently hosting with DigitalOcean. I'm using Apache and Ubuntu 16.04 with this, and I can't seem to find the PhpMyAdmin folder for themes. Is there a way to install themes in Ubuntu's…
Obfuscated
  • 105
  • 1
  • 3
  • 10
2
votes
1 answer

Apache2: PRNG still contains insufficient entropy

I have an issue that my website is not served correctly over ssl (only sometimes / by random). When the website is not served I am getting the following record in my apache error log: [ssl:warn] [pid 1849] AH01990: PRNG still contains insufficient …
Daniel K.
  • 1,189
  • 1
  • 10
  • 26
2
votes
2 answers

Gitlab on Apache2 with SSL

I have successfully installed Gitlab on Ubuntu 14.04 using https://about.gitlab.com/downloads/#ubuntu1404 but I am struggling to make redirect and access it through web (https://my.example.com/gitlab). I have modified…
Justinas Jakavonis
  • 8,220
  • 10
  • 69
  • 114
2
votes
2 answers

Route::controllers in Laravel 5.3

[BadMethodCallException] Method controllers does not exist. Route::controllers(['auth' => 'Auth\AuthController', 'password' => 'Auth\PasswordController',]); How is in Laravel 5.3? Thanks
NickF_93
  • 479
  • 4
  • 16
2
votes
3 answers

Installing PHP 7 on digitalocean

I'm trying to use PHP 7 on digitalocean but the scripts inside files won't run. This is what I used for install: sudo apt-get install php7 libapache2-mod-php7 php7-mcrypt I can do php --version and I get: PHP 7.0.8-0ubuntu0.16.04.3 (cli) ( NTS…
user3743266
  • 1,124
  • 4
  • 16
  • 28
2
votes
1 answer

Dynamic hostname and port proxying with apache

Is it possible to use apache to proxy a hostname and port dynamically like so: // -> http://.domain.local: I've tried the using ProxyPassMatch: ProxyPassMatch "^/([0-9]+)/(host-[0-9]+)$"…
Chris Seymour
  • 83,387
  • 30
  • 160
  • 202
2
votes
2 answers

Java can't find my translation file if I use Apache2 (instead of Tomcat)

I have a Java Spring application (maven) with a TranslationService class, which returns translated string from a JSON file (backend.json) .. When I build my project (mvn clean package) I get my {project}-{version}.jar file. If I execute this file…
2
votes
1 answer

Apache error log

What mistake type is this and how to correct? [Sun Oct 31 12:00:07 2010] [error] [client 201.19.xxx.xx] File does not exist: /home/Example/public_html/url(res:, referer: http://www.example.com/mypage.htm The indication of this url (url(res:,)…
Vera
  • 391
  • 1
  • 4
  • 9
2
votes
1 answer

Dbus connection through mod_wsgi in python

I'm trying to write small application which allows to send dbus commands (to Amarok) through web page. I'm using python + mod_wsgi, because I need to run the script with the same user as Amarok. When I connect to the Amarok through normal shell,…
stuudent
  • 352
  • 3
  • 11
2
votes
1 answer

c# create or modify file/directory permission: add group read permission using asp.net with mono and apache2

How can I change/set permissions of a file or directory using asp.net under mono and apache2? I have an aspx page that needs to check if a directory exists, if not, it must be created, but with group read permissions set. Tried with…
Alex Pacurar
  • 5,801
  • 4
  • 26
  • 33