Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 15th December 2006, 18:55
akaiser akaiser is offline
Junior Member
 
Join Date: Dec 2006
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default eZ Publish + ISP Config

Hi,

I've installed IspConfig and I want to install a eZ Publish site. This cms can be used in "host mode" where it's neccessary to add some code to the apache config.

The code to add is:

Code:
<VirtualHost xxx.xxx.xxx.xxx>
    <Directory /var/www/web1/web>
        Options FollowSymLinks
        AllowOverride None
    </Directory>
 
    <IfModule mod_php4.c>
        php_admin_flag safe_mode Off
        php_admin_value register_globals 0
        php_value magic_quotes_gpc 0
        php_value magic_quotes_runtime 0
        php_value allow_call_time_pass_reference 0
    </IfModule>
 
    DirectoryIndex index.php
 
    <IfModule mod_rewrite.c>
        RewriteEngine On
        Rewriterule ^/var/storage/.* - [L]
        Rewriterule ^/var/[^/]+/storage/.* - [L]
        RewriteRule ^/var/cache/texttoimage/.* - [L]
        RewriteRule ^/var/[^/]+/cache/texttoimage/.* - [L]
        Rewriterule ^/design/[^/]+/(stylesheets|images|javascript)/.* - [L]
        Rewriterule ^/share/icons/.* - [L]
        Rewriterule ^/extension/[^/]+/design/[^/]+/(stylesheets|images|javascripts?)/.* - [L]
        Rewriterule ^/packages/styles/.+/(stylesheets|images|javascript)/[^/]+/.* - [L]
        RewriteRule ^/packages/styles/.+/thumbnail/.* - [L]
        RewriteRule ^/favicon\.ico - [L]
        RewriteRule ^/robots\.txt - [L]
        # Uncomment the following lines when using popup style debug.
        # RewriteRule ^/var/cache/debug\.html.* - [L]
        # RewriteRule ^/var/[^/]+/cache/debug\.html.* - [L]
        RewriteRule .* /index.php
    </IfModule>
 
    DocumentRoot /var/www/web1/web
    ServerName www.domain.com
    ServerAlias domain.com
    ServerAlias admin.domain.com
 </VirtualHost>
I've put this code in /etc/apache/vhosts/Vhosts_ispconfig.conf instead of the code generated by ispconfig for the site. Is this correct?

When I go to admin.domain.com I get the default IspConfig page ("Shared IP. his IP address is shared...") when accesing www.domain.com all is ok.
Reply With Quote
Sponsored Links
  #2  
Old 15th December 2006, 21:39
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,713
Thanks: 819
Thanked 5,321 Times in 4,174 Posts
 
Default

Quote:
Originally Posted by akaiser
I've put this code in /etc/apache/vhosts/Vhosts_ispconfig.conf instead of the code generated by ispconfig for the site. Is this correct?
This wont work because ISPConfig will overwrite it. The Vhost_ispconfig.conf file is not for manual editing.

Put the code below in the apache directives field of the website (at the bottom of the website form), ISPConfig will parse the content into the vhost for you.

Code:
<Directory /var/www/web1/web>
        Options FollowSymLinks
        AllowOverride None
    </Directory>
 
    <IfModule mod_php4.c>
        php_admin_flag safe_mode Off
        php_admin_value register_globals 0
        php_value magic_quotes_gpc 0
        php_value magic_quotes_runtime 0
        php_value allow_call_time_pass_reference 0
    </IfModule>
 
    DirectoryIndex index.php
 
    <IfModule mod_rewrite.c>
        RewriteEngine On
        Rewriterule ^/var/storage/.* - [L]
        Rewriterule ^/var/[^/]+/storage/.* - [L]
        RewriteRule ^/var/cache/texttoimage/.* - [L]
        RewriteRule ^/var/[^/]+/cache/texttoimage/.* - [L]
        Rewriterule ^/design/[^/]+/(stylesheets|images|javascript)/.* - [L]
        Rewriterule ^/share/icons/.* - [L]
        Rewriterule ^/extension/[^/]+/design/[^/]+/(stylesheets|images|javascripts?)/.* - [L]
        Rewriterule ^/packages/styles/.+/(stylesheets|images|javascript)/[^/]+/.* - [L]
        RewriteRule ^/packages/styles/.+/thumbnail/.* - [L]
        RewriteRule ^/favicon\.ico - [L]
        RewriteRule ^/robots\.txt - [L]
        # Uncomment the following lines when using popup style debug.
        # RewriteRule ^/var/cache/debug\.html.* - [L]
        # RewriteRule ^/var/[^/]+/cache/debug\.html.* - [L]
        RewriteRule .* /index.php
    </IfModule>


Quote:
When I go to admin.domain.com I get the default IspConfig page ("Shared IP. his IP address is shared...") when accesing www.domain.com all is ok.
ISPConfig uses namebased vhosts that can only be accessed trough the domain and not trough the IP.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
activate load data local on mySQL with ISP config tgip Installation/Configuration 7 28th September 2006 16:04
ISP config Behind smoothwall help needed Grizzly General 1 15th August 2006 16:00
PHP problem ..Just installed ISP Config malikp Installation/Configuration 5 10th April 2006 11:43
some question about "Manage DNS" vs "DNS Manager" (ISP Config) fandi2000x Installation/Configuration 1 14th February 2006 09:13
isp config - ISP Invoice Question gjcomputer General 3 20th January 2006 17:59


All times are GMT +2. The time now is 10:09.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.