each webapp placed as a subdomain

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

t4nu
Ebase User
Posts: 305
Joined: Thu Jul 02, 2015 8:32 am
Location: Indonesia

each webapp placed as a subdomain

#1

Postby t4nu » Thu Mar 17, 2016 3:19 am

Hi,
I don't know if this is ebase stuff or tomcat, but what I want is something like this:

I have 2 ebase webapps say myapp1 and myapp2, now I want that instead the user has to enter http://mydomain.com:xxxx/ebase/myapp1.eb or http://mydomain.com:xxxx/ebase/myapp2.eb, he can enter something like this: http://myapp1.mydomain.com:xxxx/ or http://myapp2.mydomain.com:xxxx/
Even if possible I want to remove the port so it just http://myapp1.mydomain.com/ or http://myapp2.mydomain.com

Is it possible doing it? How?

Thanks in advance for the help.
0 x

Steve James
Ebase User
Posts: 331
Joined: Mon Mar 10, 2014 8:34 am

#2

Postby Steve James » Thu Mar 17, 2016 8:11 am

This sounds more like a DNS / proxy query.

You can change the port to standard 80 in Tomcat's configuration so the port can be dropped. See http://stackoverflow.com/questions/4756 ... 8080-to-80

We stick with Ebase ports but have DNS and NetScaller settings to point sub domains at our Tomcat instance.

By the looks of things you have 2 forms within a single Ebase instance.
0 x

t4nu
Ebase User
Posts: 305
Joined: Thu Jul 02, 2015 8:32 am
Location: Indonesia

#3

Postby t4nu » Thu Mar 17, 2016 10:35 am

AFAIK, DNS just doing a pointer to which ip the requested should be directed, and it is the task of the webserver to which webapp the request should be directed.

I don't know if the term of form you mention is the same with my understanding of the ebase form so far.
If what you mean with form is the same with ebase form which can consist more than one pages, then I have more than 1 form within a project. I always thought that webapp is the same with project.
0 x

Steve James
Ebase User
Posts: 331
Joined: Mon Mar 10, 2014 8:34 am

#4

Postby Steve James » Thu Mar 17, 2016 2:07 pm

Have a look at Tomcat virtual hosts. I've not done it but by the looks of things you can have 2 DNS entries pointing at the same IP address then Tomcat routes the request

https://tomcat.apache.org/tomcat-7.0-do ... /host.html
https://tomcat.apache.org/tomcat-7.0-do ... howto.html

I'm not sure whether the appbase can be the same for each host though, also whether the appbase can go as far as a page.

As for terms, I guess you were querying
By the looks of things you have 2 forms within a single Ebase instance.
It looks like you have a single server with a single Tomcat instance and a single Ebase webapp (normal). Your 2 urls suggest 2 forms within your single Ebase installation.

Just for fun you could have several Tomcat installations on a single server (different port) and then you could have several Ebase installations under a single Tomcat (different webapp eg ebasex and ebasey).
"I always thought that webapp is the same with project."

Normally webapp in Tomcat terms is the Ebase installation not stuff within Ebase.
0 x

User avatar
dvanhussel
Ebase User
Posts: 161
Joined: Fri Oct 19, 2007 12:45 pm
Location: Haarlem, the Netherlands

#5

Postby dvanhussel » Fri Mar 18, 2016 11:57 am

Hi,

Are you running on Linux or Windows?

We run Tomcat on Linux and have Apache (the webserver) as a proxy in front of it (using mod_proxy).

If you create 2 virtual hosts in Apache for the 2 domains, you can define in each virtual host to which port/webapp it should proxy the requests.

I'm quite sure you can do the same in IIS, if you are running on Windows.
0 x

t4nu
Ebase User
Posts: 305
Joined: Thu Jul 02, 2015 8:32 am
Location: Indonesia

#6

Postby t4nu » Wed Mar 23, 2016 9:59 pm

Thank you for the link.
Steve James wrote:Have a look at Tomcat virtual hosts. I've not done it but by the looks of things you can have 2 DNS entries pointing at the same IP address then Tomcat routes the request

https://tomcat.apache.org/tomcat-7.0-do ... /host.html
https://tomcat.apache.org/tomcat-7.0-do ... howto.html

Seems that I have to reread the documentation :(

Normally webapp in Tomcat terms is the Ebase installation not stuff within Ebase.
0 x

t4nu
Ebase User
Posts: 305
Joined: Thu Jul 02, 2015 8:32 am
Location: Indonesia

#7

Postby t4nu » Wed Mar 23, 2016 10:01 pm

It's windows server, but we don't use IIS yet. Still using tomcat directly

dvanhussel wrote:Hi,

Are you running on Linux or Windows?

We run Tomcat on Linux and have Apache (the webserver) as a proxy in front of it (using mod_proxy).

If you create 2 virtual hosts in Apache for the 2 domains, you can define in each virtual host to which port/webapp it should proxy the requests.

I'm quite sure you can do the same in IIS, if you are running on Windows.
0 x


Who is online

Users browsing this forum: No registered users and 18 guests