virtualhost problems

Author Message

Ben Pirt

Wednesday 06 August 2003 3:29:51 am

hello all,
I have a site set up which is running on virtualhosts (www and admin for the two sections) and am transferring it from the dev box to the staging box. I am getting the error that the site is not in virtualhost mode, and this is causing all kinds of problems with the urls (the site just doesn't function. I have copied over the entire ezpublish directory as well as the SQL from the database which all installed fine. What could be causing the site to act as though it is not in virtualhost mode? The virtualhost container from httpd.conf looks pretty much like this:

<VirtualHost *>
<Directory /ge/www/ezpublish>
Options FollowSymLinks Indexes ExecCGI
php_flag magic_quotes_gpc Off
php_flag magic_quotes_runtime Off
php_value register_globals 0
AllowOverride None
RewriteEngine On
RewriteRule !\.(gif|css|jpg|png|pdf)$ /ge/www/ezpublish/index.php
</Directory>
DocumentRoot /ge/www/ezpublish
ServerName server.name.com
</virtualhost>

anyone have any ideas? spent quite a few hours on this now :-(

all the best,
Ben Pirt

Bjørn Kaarstein

Wednesday 06 August 2003 4:43:27 am

This is how my sites are set up as virtualhosts in httpd.conf:
They work fine.

Do you have any other functional domains running here aswell? There could be problems elsewhere in the httpd.conf file...

<Virtualhost * >
<Directory /EZsites/mysite>
Options FollowSymLinks Indexes ExecCGI
AllowOverride None
</Directory>

RewriteEngine On
RewriteRule !\.(gif|css|jpg|png|js)$ /EZsites/mysite/index.php

ServerAdmin root@localhost
DocumentRoot /EZsites/mysite
ServerName www.mysite.no
</VirtualHost>

<Virtualhost * >
<Directory /EZsites/mysite>
Options FollowSymLinks Indexes ExecCGI
AllowOverride None
</Directory>

RewriteEngine On
RewriteRule !\.(gif|css|jpg|png|js)$ /EZsites/mysite/index.php

ServerAdmin root@localhost
DocumentRoot /EZsites/mysite
ServerName admin.mysite.no
</VirtualHost>

Also, in site.ini.append.php I have

[SiteAccessSettings]
CheckValidity=false
MatchOrder=host
HostMatchMapItems[]=mysite.no;mysite
HostMatchMapItems[]=mysite.no;admin

Don't know if this helps you out, but it's working for me.

Regards Bjørn

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

eZ debug

Timing: Jan 30 2025 21:32:14
Script start
Timing: Jan 30 2025 21:32:14
Module start 'layout'
Timing: Jan 30 2025 21:32:14
Module start 'content'
Timing: Jan 30 2025 21:32:15
Module end 'content'
Timing: Jan 30 2025 21:32:15
Script end

Main resources:

Total runtime1.2436 sec
Peak memory usage8,192.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 588.1250151.2109
Module start 'layout' 0.00600.0047 739.3359220.6875
Module start 'content' 0.01081.2319 960.02344,212.9219
Module end 'content' 1.24260.0009 5,172.94537.8594
Script end 1.2435  5,180.8047 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.2952160.0002
Check MTime0.00130.1044160.0001
Mysql Total
Database connection0.00080.060910.0008
Mysqli_queries1.154892.8639540.0214
Looping result0.00060.0450520.0000
Template Total1.171694.220.5858
Template load0.00300.243320.0015
Template processing1.168693.970420.5843
Template load and register function0.00130.107710.0013
states
state_id_array0.00240.192010.0024
state_identifier_array0.00130.103420.0006
Override
Cache load0.00250.1981550.0000
Sytem overhead
Fetch class attribute can translate value0.00170.136920.0009
Fetch class attribute name0.00210.165220.0010
XML
Image XML parsing0.00020.019920.0001
class_abstraction
Instantiating content class attribute0.00000.000820.0000
General
dbfile0.00220.1809100.0002
String conversion0.00000.000640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
11content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 26
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs