Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Best web services and application stack ever! (Trac #1) #1

Open
edsiper opened this issue Jan 28, 2014 · 1 comment
Open

Best web services and application stack ever! (Trac #1) #1

edsiper opened this issue Jan 28, 2014 · 1 comment

Comments

@edsiper
Copy link
Member

edsiper commented Jan 28, 2014

almost near :)

Migrated from http://bugs.duda.io/ticket/1

{
    "status": "new", 
    "changetime": "2013-12-30T15:57:55", 
    "description": "almost near :)", 
    "reporter": "edsiper", 
    "cc": "", 
    "resolution": "", 
    "_ts": "1388419075018564", 
    "component": "Core", 
    "summary": "Best web services and application stack ever!", 
    "priority": "major", 
    "keywords": "", 
    "version": "", 
    "time": "2013-12-30T15:57:55", 
    "milestone": "", 
    "owner": "edsiper", 
    "type": "defect"
}
swpd pushed a commit to swpd/duda that referenced this issue Aug 1, 2014
When a request arrives to Duda, it tries to match to which Virtual Host
should be assigned, after that it check which Web Services are registered
under that Virtual Host. So having multiple Web Services under the same
Virtual Host is possible defining different URI addresses for each one
based on their short name, e.g:

   app1 -> http://host1:port/app1/
   app2 -> hhtp://host1:port/app2/

The 'service root' feature allow to define a service it selfs as
'Service Root', which means that it will own the Virtual Host and others
Web Services will not be used (despites they are loaded). So when using
this feature the URI address becomes root and the short name of the
web service is not longer required, so if 'app1' defines it self as
'service root' it will be accessed through:

   http://host1:port/

The way to use this feature can be through the configuration or through
a hard call in duda_main():

1. Web Service Configuration:

   on the Virtual Host configuration, set the 'Root' key with value 'on'
   or 'off', e.g:

   [WEB_SERVICE]
       Enable on
       Root   on

   setting the key to 'on' means the service is root.

2. Setup through duda_main():

   When starting the service invoke the following method:

     conf->service_root();

Both options are valid, just note that using both ways at same time the
option monkey#2 will override any setup made by the setup on monkey#1.

Signed-off-by: Eduardo Silva <[email protected]>
@edsiper
Copy link
Member Author

edsiper commented Jul 11, 2016

Duda dst-1 did very well. Already in several production environments.

Now keep working in the next generation of Duda.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant