Posts Tagged ‘Apache’

Debian/Ubuntu: Basic Apache 2 security

Update 2010-10-25: I’ve added “TraceEnable Off” to the configuration (which is not the default on Debian). If you run an Apache 2 web server on a production system, it is always a good idea to make some easy configuration changes in /etc/apache2/conf.d/security to increase the server’s security: # Disable access, directory indexing and .htaccess files […]

Read more…

Ubuntu 10.04: Setup APC for PHP 5.3 and Apache2

Installing the APC (Alternative PHP Cache) using the php-apc package is straightforward: # sudo aptitude install php-apc # sudo /etc/init.d/apache2 restart# sudo aptitude install php-apc # sudo /etc/init.d/apache2 restart Using the package php-apc installs APC 3.1.3p1. If you would like to use the most recent version 3.1.4 you can manually set up the PECL package […]

Read more…

Apache’s mod_rewrite & mod_proxy: Use “Reverse Proxy Request Headers” for rewrite rules

Imagine the following scenario: The URL to your site is your-public-url.com (hosted in a low-priced web package that only supports reroutings to other URLs). The “internal” URL to your site is your-internal-url.com (e.g. an DynDNS-URL to your home server). The hoster of your-public-url.com uses apache’s mod_proxy that acts in a reverse proxy mode to redirect […]

Read more…