In order to share a web-app between a HTTP and HTTPS site at the same
context path, do the following.  I just tried this on my machine and it
works fine.
I am using Orion1.5.2 on Windows2000.

config/server.xml
-------------------------
<?xml version="1.0"?>
<!DOCTYPE application-server PUBLIC "Orion Application Server Config"
"http://www.orionserver.com/dtds/application-server.dtd";>
<application-server application-directory="../applications"
deployment-directory="../application-deployments">
...
        <web-site path="./default-web-site.xml"/>
        <web-site path="./secure-web-site.xml"/>
...
</application-server>

config/default-web-site.xml
---------------------------------------
<?xml version="1.0"?>
<!DOCTYPE web-site PUBLIC "Orion Web-site"
"http://www.orionserver.com/dtds/web-site.dtd";>
<web-site port="80" secure="false" display-name="Default Orion WebSite">
        <default-web-app application="default" name="defaultWebApp"
shared="true"/>
...
</web-site>

config/secure-web-site.xml
---------------------------------------
<?xml version="1.0"?>
<!DOCTYPE web-site PUBLIC "Orion Web-site"
"http://www.orionserver.com/dtds/web-site.dtd";>
<web-site port="443" secure="true" display-name="Secure Orion WebSite">
        <ssl-config keystore="../keys/server.keystore"
keystore-password="myPassword" />       
        <default-web-app application="default" name="defaultWebApp"
shared="true" />
...
</web-site>


and delete the file
D:\orion\application-deployments\default\defaultWebApp\persistence\state.ser
before restarting orion.

Good Luck.


Reply via email to