Friday 31 March 2006 1:10:09 am
Hello,
I want to test NuSOAP extension in a multisite installation.
I have 2 sites and succeed to set up a virtual host installation accessing
to site 1 by http://site1.mycomputer.mydomain.com/ and to site 2 by http://site2.mycomputer.mydomain.com/.
To do so I have a unique virtual host like the one in EzPublish documentation which redirect all of port 80 to index.php of EzPublish
<VirtualHost *:80>
...
<IfModule mod_rewrite.c>
RewriteEngine On
...
RewriteRule .* /index.php
</IfModule>
and then the settings in overrride/site.ini.append do the rest :
[SiteAccessSettings]
CheckValidity=false
AvailableSiteAccessList[]=site1
AvailableSiteAccessList[]=site1_admin
AvailableSiteAccessList[]=site2
AvailableSiteAccessList[]=site2_admin
MatchOrder=host
HostMatchMapItems[]=site1.mycomputer.mydomain.com;site1
HostMatchMapItems[]=site2.mycomputer.mydomain.com;site2
HostMatchMapItems[]=site1_admin.mycomputer.mydomain.com;site1_admin
HostMatchMapItems[]=site2_admin.mycomputer.mydomain.com;site2_admin
I want to test the installation having a soap server for site 1 and a soap client in site2
I installed Nusoap following the instructions,
but I think there is something I don't understand in Virtual host setup. In nusoap/doc/install.txt, it is told to add a Virtualhost like that :
<VirtualHost [IP_ADDRESS]:[PORT]>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* /nusoap.php
</IfModule>
DocumentRoot [PATH_TO_EZPUBLISH]
ServerName [SERVER_NAME]
ServerAlias [SERVER_ALIAS]
</VirtualHost>
How must I setup this virtual host with the other one ?
I tried to add an other virtual host, but it does not work.
It should display the web services available, but nothing is displayed in the browser. But the second test of the extension in command line works :
# ./extension/nusoap/bin/php/helloworldclient.php http://soap.example.com/helloworld?wsdl Kristof
print : Hello, Kristof
Somebody can help me to finish installation and explain me how to setup a soap server and have a soap client in EzPublish ? Many thanks for help
|