Skip to content
This repository has been archived by the owner on Jan 16, 2020. It is now read-only.

Subdomains and separate apps #63

Closed
daviedR opened this issue Jan 30, 2018 · 2 comments
Closed

Subdomains and separate apps #63

daviedR opened this issue Jan 30, 2018 · 2 comments

Comments

@daviedR
Copy link

daviedR commented Jan 30, 2018

Hi,

I am using Serverpilot and have a separate app for my subdomain. For example:

Main app

  • App name: mydomain
  • Domains: mydomain.com, www.mydomain.com

Dev app

  • App name: mydomain-dev
  • Domains: dev.mydomain.com, www.dev.mydomain.com

In you bash script, we need to input the app name. For the dev app, should I create separate certificate (considering it's a different app on ServerPilot) OR use the main app certificate?

I tried to make separate certificate for mydomain-dev, but my serverpilot went down and I had to remove the mydomain-dev.ssl.conf file and reboot nignx-sp to get it working again.

Any idea?

@caroseuk
Copy link
Contributor

www.dev.mydomain.com is not a valid URL so trying to create a certificate for that will more than likely fail?

I create separate apps for development domains.

when creating your certificate using the script, just enter the single domain dev.mydomain.com and within the app in SP remove the www.dev.mydomain.com domain from the SP control panel? Then try again

Just my thoughts. :)

@daviedR
Copy link
Author

daviedR commented Jan 30, 2018

@caroseuk

Oh great! Yeah the www.dev.mydomain.com is the issue, the www subdomain is not registered as A DNS record on my server. I enter the dev.mydomain.com on the bash script and it works!

Thanks!

@daviedR daviedR closed this as completed Jan 30, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants