Question

I try to setup xsp2 webserver to serve multiple applications.

Created the configuration file sites.webapp

<apps>
   <web-application>
        <name>app1</name>
        <vhost>domain1.com</vhost>
        <vport>8080</vport>
        <vpath>/</vpath>
        <path>/var/www/app1</path>
   </web-application>
   <web-application>
        <name>app2</name>
        <vhost>domain2.com</vhost>
        <vport>8080</vport>
        <vpath>/</vpath>
        <path>/var/www/app2</path>
   </web-application>
</apps>

Then I start the server xsp2 --appconfigfile site.webapp

http://domain1.com:8080 shows a page from app2. http://domain2.com:8080 shows the same page from app2.

Seems the xsp2 uses the last application from sites.webapp and serves all requests with it.

What am I doing wrong? Please help to setup multiple virtual hosts for xsp2.

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top