Virtual Host Config

Author Message

sean foley

Thursday 28 May 2009 8:47:57 am

Hi there, I am having trouble with installing ez publish on a virtual host, I have tried numerous times to get it to work but to no avail. I will list my set up here and would be much apprechiative of someone help.

I'm running Apache HTTPD 2.2.11, MySQL 5.1.33, PHP 5.2.9 on a xampp server

OS = windows XP

I have installed Ez Publish 4.1.2 on the localhost using the ezflow site

Can someone please give me a explaination as to settings I have to apply in order to get it to work.

Pål Messenlien

Friday 29 May 2009 12:25:56 am

This is a vhost file from Linux. But it should work if you change teh DocumentRoot and <Directory options to the windows path for your host.

<VirtualHost 127.0.0.1>
DocumentRoot "/opt/sites/merged"
   RewriteEngine On
      # For all known data directories we let Apache serve it directly
        Rewriterule ^/var/storage/.*                                                    - [L]
        Rewriterule ^/var/[^/]+/storage/.*                                              - [L]
        RewriteRule ^/var/cache/texttoimage/.*                                          - [L]
        RewriteRule ^/var/[^/]+/cache/texttoimage/.*                                    - [L]
        RewriteRule ^/var/[^/]+/cache/(stylesheets|javascript)/.* 			- [L]
        RewriteRule ^/var/[^/]+/cache/public/.* 					- [L]
        Rewriterule ^/design/[^/]+/(stylesheets|images|javascript)/.*                   - [L]
        Rewriterule ^/share/icons/.*                                                    - [L]
        Rewriterule ^/extension/[^/]+/design/[^/]+/(stylesheets|images|javascripts?)/.* - [L]
        Rewriterule ^/packages/styles/.*                                                - [L]
        RewriteRule content/treemenu/?$ /index_treemenu.php                               [L]

        # If not PHP should serve the page
        Rewriterule .* /index.php

        ServerName merged.localhost
        <Directory "/opt/sites/hil.no">
                Options FollowSymlinks
                AllowOverride All
                Order Allow,Deny
                Allow from all
        </Directory>
</VirtualHost>

Hope this helps

--------------------------------------------
Høgskolen i Lillehammer
Lillehammer University College
http://www.hil.no
--------------------------------------------
Messenlien IT
http://messenlien.com
-------------------------------------------

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.