Forums / Install & configuration / "HTTP-special"-code for Confixx 3

"HTTP-special"-code for Confixx 3

Author Message

Marco Zinn

Saturday 28 August 2004 8:32:50 am

Hi,
maybe this will be of use for users of Confixx 3. I guess, it also applies to Confixx 2.
If you want to have ez3.4 installed for a domain, that is defined in Confixx 3, you can define the Virtualhost lines with the "HTTP special" function of Confixx. This keeps you from hacking the httpd-conf files.

For ez3.4 you can use this code-snippet:

DocumentRoot /home/htdocs/##user##/html/SUB_DIRECTORY

php_admin_flag safe_mode off
php_admin_value post_max_size 10M
php_admin_value memory_limit 32M

RewriteEngine on
RewriteRule !(^/design|^/var/.*/storage|^/var/storage|^/var/.*/cache|^/var/cache|^/extension/.*/design|^/kernel/setup/packages|^/packages|^/share/icons).*\.(gif|css|jpg|png|jar|js|ico|pdf|swf)$ /index.php

Explanation:
DocumentRoot /home/htdocs/##user##/html/SUB_DIRECTORY
This will set the Documentroot to something like /home/htdocs/web1/html/SUB_DIRECTORY
Confixx will replace the ##user## with the user name (web1, web2). But you need to specifiy SUB_DIRECTORY, if you don't have ezPublish in the /home/htdocs/web1/html/. This is optional: If your ezPublish installation lives in /home/htdocs/web1/html/, you can omit this line

php_admin_flag safe_mode off
Confixx enables safe_mode for all Virtualhosts. This is to disable safe_mode for the ezPublish-Domain

php_admin_value post_max_size 10M
This sets the max. Upload size to 10 MB. Needed for large file uploads

php_admin_value memory_limit 32M
This sets the max. Upload size to 32 MB. ez requires 12MB, but sometimes, you need 16MB or more. You need this line, as the default is 8MB, which is not enough.

Note, that after saving the lines, you need to wait about 2 minutes, until they take effect, as the webserver is not restarted immediatly.

Marco
http://www.hyperroad-design.com