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

Installation instructions: how to create symlinks between multiple domains/subdomains #55

Open
MincePie opened this issue Oct 6, 2016 · 3 comments

Comments

@MincePie
Copy link

MincePie commented Oct 6, 2016

I'm trying to understand Part 2a of the installation instructions.

It says: Please bear in mind that if you would like to generate certificate for multiple domains than you have to create symlinks between sub-domains and main domain www directory. For example:

What does it mean?

1. Expected behaviour

I expect to see an example of how to follow the steps described.

2. Actual behavior

I can see a diagram although I don't know what it represents or how I'm supposed to complete this step of the instructions.

3. Steps to reproduce issue

See step 2a of the installation instructions

4. Your configuration (ruby, rails version, your Gemifile and Gemfile.lock files etc.)

Rails 5, Ruby 2.3.1., this gem is in the gem file

@jasper-lyons
Copy link
Contributor

This is not something I would expect you to have to do. Rails does not depend on the directory layout of your app to respond to a request from a given domain.

How are you hosting this app? (heroku? aws? digital ocean?)

@lgromanowski
Copy link
Owner

Hi,
I will try to explain - letsencrypt_plugin is a RoR engine mounted on given route in your application (lets call it "A", pinned to: domain-a.com). Each application has it's own LE plugin. When you configure multiple domains in LE plugin (lets say: domain-a.com, domain-b.com, domain-c.com) and run it from application "A" LE Cert server will try to access domain-a.com first and make challenge/response check on domain-a.com. Then it will try to do the same for domain-b.com, but we run LE plugin from application "A" (domain-a.com) and depending on configuration challenge/response tokens are stored in files/DB inside application "A". So either there will be symlinks described on wiki (or webserver is configured in the way that domain-b.com, and domain-c.com points to the same directory as domain-a.com), or challange/response tokens should be stored in the same DB, accessible for application "A","B", and "C".

@MincePie
Copy link
Author

I am using heroku. I made a completely new app, with nothing it it other than LE plugin. It's on heroku. I outlined current issues on Issue 19. Thanks both.

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

No branches or pull requests

3 participants