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

Yii2 Internal Server Error #8

I have created a dashboard using Yii2's php framework and mysql 5.3 It is a pretty basic application that simply retrieves data from the DB using mysql and displays the results (date ranges can be specified, and certain data can be filtered out of…
2
votes
2 answers

Optimizing the website with .htaccess

I've tried to optimize my website using YSlow for directions. However, even though I have added the DEFLATE code at .htaccess to gzip the files, YSlow still doesn't show the files as gzipped. I tried testing my website using this:…
input
  • 7,503
  • 25
  • 93
  • 150
2
votes
1 answer

How to set rewrite cond apache by Ip range

I have this rewrite cond in .htaccess RewriteCond %{REMOTE_ADDR} !^195.16.40.50 How to set RewriteCond by ip range from 192.168.0.0 to 192.168.32.255
Naumov
  • 1,167
  • 9
  • 22
2
votes
1 answer

Apache2 - How to build different site with different web address

I want to create site in the same IP but with different sub folder, for example: http://192.168.0.1/a/ --> /var/www/site_a/ http://192.168.0.1/b/ --> /var/www/site_b/ The config: #Site name ServerName 192.168.0.1 …
Awin
  • 139
  • 2
  • 9
2
votes
2 answers

Laravel public/index.php displays as plain text

I just installed an existing Laravel project onto a web server by git cloning. I have done as much proper setup as possible as per Laravel guidelines, including setting up Apache Virtual Hosts like so: ServerAdmin…
Marcel Gruber
  • 6,668
  • 6
  • 34
  • 60
2
votes
1 answer

Passing file download via php very slow

I have a window 2003 dedicated server, i have installed xampp on it. So i tried to pass download using PHP script such as zina from pancake.org, phpIndexer php functions such as fread, fgets, file, file_get_contents; If i download let say from…
newbieUser
  • 21
  • 2
2
votes
2 answers

How to Use Two Different PHP Versions on One Server

I have 2 websites on a single server, but one site's PHP version must be 5.2.17, and the other must be 5.5+. I am using Ubuntu 14.04.2 LTS with Apache2 and PHP. I have already installed PHP 5.5 (via apt-get) and 5.2.17 (via installation from…
Sanborn
  • 41
  • 8
2
votes
1 answer

Can subprocess.Popen be used when called from py code running under mod_wsgi in Apache2

I'm using subprocess.Popen and getting IOErrors when running under mod_wsgi. The following code will work in a python term, or a django runserver, and under mod_python. If you put it under mod_wsgi (v2), it fails: (2, 'No such file or directory')…
gene
  • 999
  • 1
  • 7
  • 7
2
votes
1 answer

GitLab site is showing the plesk default page. What am i doing wrong?

so here is my setup: I have Ubuntu 14.04 and installed Gitlab omnibus. Then i basically just followed this guide: Setup for non-bundled Webserver (apache in my case) I successfully enabled the apache site with this config files: gitlab.rb (just…
Acimaz
  • 171
  • 1
  • 14
2
votes
2 answers

Aliasing a URL in Apache2 with mod_jk

I'm using Apache 2.4 with mod_jk and Tomcat running a Java servlet. The application I'm serving has an ugly index URL: accessing www.mydomain.com/ takes the user to www.mydomain.com/view/user/www/. I would like to alias this so that users see…
PoolOfPeas
  • 383
  • 2
  • 11
2
votes
1 answer

Optionally pass REMOTE_USER to application

In our company we have an apache server running a django application (through wsgi) and some legacy php applications. To have some sort of single sign on we decided to use mod_auth_form and wsgi as the AuthFormProvider. In django itself we enabled…
KebdnK
  • 555
  • 1
  • 6
  • 23
2
votes
1 answer

Satis http basic auth - pass credentials

I have set up satis private composer packet manager. Satis is running on "packages.asc.company", I protected the site by apache2 http basic authentication and can open it in browser by entering http basic auth credentials. Now my question: How can I…
user3746259
  • 1,491
  • 2
  • 23
  • 46
2
votes
1 answer

Permission denied: FastCGI: can't create server

Using PHPFarm tuturial I tried to setup PHP version 5.4.45 on a Debian GNU/Linux 6.0.9 (squeeze). I follwed the steps and then at the end in the apache2 error log file, I got this error: [crit] (13)Permission denied: FastCGI: can't create server…
Torgheh
  • 776
  • 8
  • 18
2
votes
0 answers

how to remove part of string from url for webalizer

On my site, I use version-strings in the URL, for example: www.mydomain.com/images/image.v723484872.jpg In the HTTP config, I rewrite the URL so that the version string is cut of. How can I track the rewritten URL in Webalizer? Thank…
Oliver
  • 21
  • 1
2
votes
1 answer

Accidentally deleted /etc/apache2/ folder, what can I do?

I tried things like "brew install homebrew/apache/httpd24" but nothing seems to retrieve the "/etc/apache2" folder. What can I do?
1 2 3
99
100