I *think* I have got pretty close to getting Midgard installed, however, 
I am confused about all the required VirtualHosts.

I have a RH7.2, Apache 1.3.26, MySQL 3.23, PHP 4.21 setup

My Apache server is serving lots of existing virtual hosts using 
NameVirtualHosts on one IP address.  Pre-Midgard it only uses port 80.

So I have VirtualHost directive something like the following:

NameVirtualHost 10.0.0.1

<VirtualHost 161.73.38.103>
ServerName default.jcsolutions.co.uk
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /var/www/html
DirectoryIndex home.html index.php
</VirtualHost>

<VirtualHost 161.73.38.103>
ServerName nonmidgardvh1.jcsolutions.co.uk
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /var/www/html/nonmidgardvh1
</VirtualHost>

<VirtualHost 161.73.38.103>
ServerName nonmidgardvh2.jcsolutions.co.uk
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /var/www/html/nonmidgardvh2
</VirtualHost>

and then on the end I add the Virtual Host contents of midgard-data.conf:

<VirtualHost 161.73.38.103>
     MidgardEngine On
     ServerName midgard.jcsolutions.co.uk
     Port 80

     # Switch off magic quotes - it is required with Midgard
     php_value magic_quotes_gpc off
     php_value magic_quotes_runtime off

     # Configure text parser:
     # Change to 'russian' for Russian Midgard
     MidgardParser latin1
     MidgardBlobDir "/var/midgard/blobs"

     # Configuration for Russian Midgard:
     <IfModule mod_charset.c>
      # default charset for real or virtual server (selected if all 
other charset-
      # selections methods fails)
      CharsetDefault koi8-r
      # Default source (on-disk) charset (we keep all content in DB in 
KOI8-R
      # encoding). If you want different encoding, please re-encode 
midgard-ru.sql
      # before inserting it into DB too.
      CharsetSourceEnc koi8-r
      # Force mod_charset to do its work
      CharsetDisable Off
     </IfModule>
</VirtualHost>

Okay so far?  Now what I am confused about is the section under amending 
the Apache config file and updating the Midgard database in the 
installation documentation.

When I create a Midgard site I want to be able to access it not through 
another port number (my ports are firewall blocked and they won't let me 
punch holes through on 8099 or whatever).  I can use other ports from 
within my firewall for admin purposes, but I will want to use

midgardsite1.jcsolutions.co.uk
midgardsite2.jcsolutions.co.uk

and so on to access the front end sites.

Anyway - if I restart apache and use the midgard.jcsolutions.co.uk 
address it simply loads the default server page at 
default.jcsolutions.co.uk.

I found these lines:

MidgardDatabase <midgard> <midgard> <midgard>
AddType application/x-hhtpd-php-midgard .mgd
MidgardTemplate phpelements.xml
MidgardRootFile libexec/midgard-root.php4

And put all of these in the non-server specific section of my 
httpd.conf, and presumed that I need to change the <midgard> elements to 
the username, password and dbname of the modgard database?

But it still does not do anything different.

So I now do not know what is happening.  I'm on the verge of unpicking 
everything and starting again, or worse, giving up.  But I feel I must 
be somewhere close!

Any thoughts anyone?

Jock
-- 
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+Jock Coats, J C Solutions, M3a Morrell Hall, OX3 0TU  +
+T:+44 1865 485019 M:+44 7769 695767 F:+44 845 1275714 +
+E:[EMAIL PROTECTED] W:www.jcsolutions.co.uk+
++++++++++++++++++++++++++++++++++++++++++++++++++++++++


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to