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

Using Virtualmin template variables #10

Open
stu177 opened this issue Apr 29, 2019 · 1 comment
Open

Using Virtualmin template variables #10

stu177 opened this issue Apr 29, 2019 · 1 comment

Comments

@stu177
Copy link

stu177 commented Apr 29, 2019

I'm trying to use the Virtualmin template variables from here in the section labelled "Adding Nginx config directives".

It doesn't seem to parse them and causes the nginx site config to be broken on a new site creation.

The code I'm trying is:

location ^~ /.well-known/acme-challenge/ {
    root /home/${USER}/public_html/;
}

Is it possible to use the Virtualmin template variables here or is there any other way of using them in the nginx site config that is generated?

Thanks

@jcameron
Copy link
Collaborator

jcameron commented May 3, 2019

What's the exact error message you're getting? Is it that ${USER} isn't substituted when the domain is created?

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

2 participants