Apache

From Triangle Wiki

Jump to: navigation, search

Contents

Introduction

Apache is a web server.

Apache Commands

For example "apache2ctl configtest" will test the httpd.conf file for any errors, useful to do this before applying any changes that may cause the Apache and server to crash.

Stop Apache Directory Browsing

It is best to switch off directory browsing on all directories under root, and then allow on the directories you specifically want users to be able to see:

  1. <Directory />
  2. Options FollowSymLinks -Indexes
  3. AllowOverride None
  4. </Directory>

Mod Deflate

The mod_deflate module provides the DEFLATE output filter that allows output from your server to be compressed before being sent to the client over the network.

Set up PHP within Apache 2 in Windows

  1. LoadModule php5_module "C:/PHP5.X/php5apache2_2.dll"
  2. AddType application/x-httpd-php .php
  3. PHPIniDir "C:/PHP5.X"

External Links

Personal tools