2

There are two servers, one for web pages (Server A), one for web apps (Server B).

In Server A every web page has its own folder, domain and ssl certificate. In Server B every web app has its own folder.

Q1. Could be possible to setup the web page at domain_abc.com and their respective web app at app.domain_abc.com ?

Q2. If the above is possible it could work under the same ssl certificate ?

View Image

Leonardo
  • 63
  • 2
  • 6
  • 2
    Yes, with a wildcard or multi-domain certificate. – ceejayoz Nov 01 '16 at 14:29
  • could you lead me to solve Q1? I tried with an A record on DNS but can't include the directory where the web app is it – Leonardo Nov 01 '16 at 14:36
  • 1
    The answer to Q1 is still yes. Look up virtualhosts. – ceejayoz Nov 01 '16 at 14:37
  • You can't include directories or other paths in DNS entries. You have to configure this in the webserver, using virtualhosts, as suggested. Most probably you want to configure Server A as a reverse proxy for the application servers. – Gerald Schneider Nov 01 '16 at 14:55
  • I'm stuck with virtualhosts configuration, I forgot to say something really important, Server A and Server B are not in the same LAN, Server A is in a VPS in a hosting company, Server B is an EC2 (Amazon). Is still virtualhosts solution applicable? – Leonardo Nov 02 '16 at 14:20

0 Answers0