Size: 1114
Comment:
|
Size: 1135
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 25: | Line 25: |
Virtual hosts are declared in domain-specific files. An example site configuration, for [[CGITSetup|CGit]]. | Virtual hosts are declared in domain-specific files. An example site configuration for a CGI script, such as [[CGITSetup|CGit]]. |
Apache
The 'Old Reliable' of web servers--it's sometimes even vendored as httpd. Can be just as fast as NGINX, as long as you have a few hundred years to figure out the optimized configuration.
Installation
Configuration
Server
The server is configured in /etc/apache2.conf. This file requires little intervention, while site-specific configurations are included.
Sites
Virtual hosts are declared in domain-specific files. An example site configuration for a CGI script, such as CGit.
<VirtualHost *:80> ServerAdmin webmaster@localhost ServerName git.my-domain.com DocumentRoot /usr/share/cgit Alias / /usr/share/cgit/cgit.cgi <Document '/usr/share/cgit/'> Options ExecCGI FollowSymLinks Require all granted AddHandler cgi-script .cgi DirectoryIndex cgit.cgi </Document> ErrorLog /var/log/apache2/error.log CustomLog /var/log/apache2/access.log combined </VirtualHost>