Skip to content
Snippets Groups Projects
Commit a753a438 authored by redray's avatar redray
Browse files

- changed "AllowOverride all" for fast-cgi: fixes problems with i.e. serendipity blog

- added fast-cgi part to ssl section
parent e02e773d
No related branches found
No related tags found
No related merge requests found
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
AddHandler fcgid-script .php .php3 .php4 .php5 AddHandler fcgid-script .php .php3 .php4 .php5
FCGIWrapper <tmpl_var name='fastcgi_starter_path'><tmpl_var name='fastcgi_starter_script'> .php FCGIWrapper <tmpl_var name='fastcgi_starter_path'><tmpl_var name='fastcgi_starter_script'> .php
Options +ExecCGI Options +ExecCGI
AllowOverride None AllowOverride all
Order allow,deny Order allow,deny
Allow from all Allow from all
</Directory> </Directory>
...@@ -91,7 +91,8 @@ ...@@ -91,7 +91,8 @@
php_admin_value session.save_path <tmpl_var name='document_root'>/tmp php_admin_value session.save_path <tmpl_var name='document_root'>/tmp
#php_admin_value open_basedir <tmpl_var name='document_root'>:/usr/share/php5 #php_admin_value open_basedir <tmpl_var name='document_root'>:/usr/share/php5
</tmpl_if> </tmpl_if>
<tmpl_var name='apache_directives'>
<tmpl_var name='apache_directives'>
</VirtualHost> </VirtualHost>
...@@ -159,7 +160,17 @@ ...@@ -159,7 +160,17 @@
# php as cgi enabled # php as cgi enabled
AddType application/x-httpd-php .php .php3 .php4 .php5 AddType application/x-httpd-php .php .php3 .php4 .php5
</tmpl_if> </tmpl_if>
<tmpl_if name='php' op='==' value='fast-cgi'>
# php as fast-cgi enabled
<Directory {tmpl_var name='web_document_root_www'}>
AddHandler fcgid-script .php .php3 .php4 .php5
FCGIWrapper <tmpl_var name='fastcgi_starter_path'><tmpl_var name='fastcgi_starter_script'> .php
Options +ExecCGI
AllowOverride all
Order allow,deny
Allow from all
</Directory>
</tmpl_if>
<tmpl_if name="rewrite_enabled"> <tmpl_if name="rewrite_enabled">
RewriteEngine on RewriteEngine on
...@@ -177,8 +188,7 @@ ...@@ -177,8 +188,7 @@
#php_admin_value open_basedir <tmpl_var name='document_root'>:/usr/share/php5 #php_admin_value open_basedir <tmpl_var name='document_root'>:/usr/share/php5
</tmpl_if> </tmpl_if>
<tmpl_var name='apache_directives'> <tmpl_var name='apache_directives'>
</VirtualHost> </VirtualHost>
</IfModule> </IfModule>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment