Difference between revisions of "Lamp Server Notes"
From OpenEMR Project Wiki
Line 67: | Line 67: | ||
| <tt style="font-size: 130%">Options -ExecCGI</tt> | | <tt style="font-size: 130%">Options -ExecCGI</tt> | ||
| Turn off CGI file executions. | | Turn off CGI file executions. | ||
|- | |||
| <tt style="font-size: 130%">LimitRequestBody 512000</tt> | |||
| Limits size of HTTP request. Any value from 0 to 2147483647 (2GB). | |||
|- | |||
| <tt style="font-size: 130%">MaxClients 10</tt> | |||
| Limits simultaneous connections. Default is 256. | |||
|} | |} | ||
<br> | |||
=====Sample Virtual Host===== | |||
<pre style="font-size: 130%"> | |||
<VirtualHost *:80> | |||
DocumentRoot /var/www/html/example.com/ | |||
ServerName www.example.com | |||
DirectoryIndex index.htm index.html index.php | |||
ServerAlias example.com | |||
ErrorDocument 404 /story.php | |||
ErrorLog /var/log/httpd/example.com_error_log | |||
CustomLog /var/log/httpd/example.com_access_log combined | |||
</VirtualHost> | |||
</pre> | |||
<br> | |||
<br> | <br> |
Revision as of 13:44, 27 May 2014
Apache Notes
Files
/etc/apache2 | Config File |
/usr/share/doc/apache2-doc | Apache2 Manual. |
/var/www/html | Default http home directory. |
Commands
apache2 -v | Display apache version. |
Configuration File Settings
ServerSignature Off | Suppress identification of the Apache version. |
ServerTokens Prod | Suppress identification of OS. |
<Directory /var/www/html> Options -Indexes </Directory> |
Turn off directory listing. |
Configuration File - Directory DIrectives
Options None | |
Order deny, allow | Order of deny, allow directives. |
Deny from all. | Deny request from everybody. |
Options -FollowSymLinks | Disable following symbolic links. |
Options +FollowSymLinks | Enable following symbolic links. |
AllowOverride All | Allows override of directory directives with .htaccess files. |
Options -Includes | Turn off server side includes (mod_includes). |
Options -ExecCGI | Turn off CGI file executions. |
LimitRequestBody 512000 | Limits size of HTTP request. Any value from 0 to 2147483647 (2GB). |
MaxClients 10 | Limits simultaneous connections. Default is 256. |
Sample Virtual Host
<VirtualHost *:80> DocumentRoot /var/www/html/example.com/ ServerName www.example.com DirectoryIndex index.htm index.html index.php ServerAlias example.com ErrorDocument 404 /story.php ErrorLog /var/log/httpd/example.com_error_log CustomLog /var/log/httpd/example.com_access_log combined </VirtualHost>
MySQL Notes
PHP Notes