Created
November 8, 2012 21:02
-
-
Save MichaelSp/4041582 to your computer and use it in GitHub Desktop.
Apache configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost 0.1.2.3:443> | |
SuexecUserGroup "#1000" "#1000" | |
[...] other configuration [...] | |
Alias /Microsoft-Server-ActiveSync /home/michael/sogosync/index.php | |
Alias /test /home/michael/sogosync/info.php | |
<Directory /home/michael/sogosync/> | |
SetEnvIfNoCase ^Authorization$ "(.+)" PHP_AUTH_DIGEST_RAW=$1 | |
Options +ExecCGI | |
<IfModule mod_mime.c> | |
<IfModule mod_php5.c> | |
AddType application/x-httpd-php .php | |
php_flag magic_quotes_gpc off | |
php_flag register_globals off | |
php_flag magic_quotes_runtime off | |
php_flag short_open_tag on | |
</IfModule> | |
<IfModule !mod_php5.c> | |
<IfModule mod_actions.c> | |
<IfModule mod_cgi.c> | |
AddType application/x-httpd-php .php | |
Action application/x-httpd-php /cgi-bin/php5 | |
</IfModule> | |
<IfModule mod_cgid.c> | |
AddType application/x-httpd-php .php | |
Action application/x-httpd-php /cgi-bin/php5 | |
</IfModule> | |
</IfModule> | |
</IfModule> | |
</IfModule> | |
<IfModule mod_dir.c> | |
DirectoryIndex index.php | |
</IfModule> | |
<Files *.xml> | |
order deny,allow | |
deny from all | |
</Files> | |
</Directory> | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment