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

Multiple vhosts with Clamp #14

Open
aldorr opened this issue Nov 10, 2015 · 0 comments
Open

Multiple vhosts with Clamp #14

aldorr opened this issue Nov 10, 2015 · 0 comments

Comments

@aldorr
Copy link

aldorr commented Nov 10, 2015

Does anyone have an idea of how to set up the config file to be able to use virtual hosts in clamp?
I.e.:
mysite.local = the regular frontend... and
backend.mysite.local = the backend/cms on same server, just based in a different folder.

The Live server that I have copied the site from uses the alias module in Apache to make two different aliases: One for the frontend and one for the backend.

Thought it might work if I do something like:

    "host": {
        "options": {
            "127.0.0.1": "{{$.address}}", // address is "mysite.local" in this example
            "127.0.0.1/backend": "backend.mysite.local"
        }
    },

But obviously that is foolhardy. How might I go about this?
Thanks!

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

1 participant