52 | | Your could also see the Cgi Version from [http://shilpa.media.osaka-cu.ac.jp/zoo/test_service.zo/?Service=WPS&request=GetCapabilities&Version=1.0.0 Shilpa !] |
| 55 | ===== From an apache web server ===== |
| 56 | |
| 57 | You could use the cgi version of zoo_loader on your own apache server. Do do this, use the following instruction. |
| 58 | |
| 59 | Copy the cgi script, the demo service and the required files in your {{{cgi-bin}}} directory. |
| 60 | {{{ |
| 61 | #!sh |
| 62 | cp /path/to/trunk/zoo-kernel/zoo_loader.cgi /var/www/localhost/cgi-bin |
| 63 | cp /path/to/trunk/zoo-kernel/demo_service.zo /var/www/localhost/cgi-bin/test_service.zo |
| 64 | cp /path/to/trunk/zoo-kernel/*zcfg /var/www/localhost/cgi-bin |
| 65 | cp /path/to/trunk/zoo-kernel/*cfg /var/www/localhost/cgi-bin |
| 66 | }}} |
| 67 | |
| 68 | Create a file {{{.htaccess}}} in a zoo directory from the directory index of your apache instalaltion. |
| 69 | {{{ |
| 70 | #!sh |
| 71 | cat > /var/www/localhost/htdocs/zoo/.htaccess << EOF |
| 72 | RewriteEngine on |
| 73 | RewriteCond %{REQUEST_FILENAME} !-f |
| 74 | RewriteCond %{REQUEST_FILENAME} !-d |
| 75 | RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !=%{DOCUMENT_ROOT}/login.php |
| 76 | RewriteRule (.*)/(.*)/(.*) /cgi-bin/zoo_loader.cgi?ServiceProvider=$2&metapath=$1 [L,QSA] |
| 77 | RewriteRule (.*)/(.*)/ /cgi-bin/zoo_loader.cgi?ServiceProvider=$2&metapath=$1 [L,QSA] |
| 78 | RewriteRule (.*)/(.*) /cgi-bin/zoo_loader.cgi?ServiceProvider=$1&metapath= [L,QSA] |
| 79 | EOF |
| 80 | }}} |
| 81 | |
| 82 | |
| 83 | |
| 84 | You could also see the Cgi Version from [http://shilpa.media.osaka-cu.ac.jp/zoo/test_service.zo/?Service=WPS&request=GetCapabilities&Version=1.0.0 Shilpa !] |