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

Add ability to support Location not via custom blocks #2410

Open
sergey-ganchuk opened this issue May 3, 2023 · 4 comments
Open

Add ability to support Location not via custom blocks #2410

sergey-ganchuk opened this issue May 3, 2023 · 4 comments

Comments

@sergey-ganchuk
Copy link

Use Case

I was trying to configure reverse proxy and found that there is not possible to create location directives not via custom blocks.

Describe the Solution You Would Like

Add ability to manage locations via puppet and hiera directly.

Describe Alternatives You've Considered

Templating of full vhost configuration is not so good solution.

@ekohl
Copy link
Collaborator

ekohl commented May 3, 2023

Have you tried the $apache::vhost::directories parameter? That can be used, though it is fairly complex and you need to read the template itself to figure it out.

You can also use apache::vhost::proxy.

@sergey-ganchuk
Copy link
Author

Yep, It would be more clear if there would be ability to use location directive either.

@ekohl
Copy link
Collaborator

ekohl commented May 3, 2023

You can, though it's not clearly documented with an example. The provider key can be used. What I pass elsewhere:

$directories = [
  {
    'provider' => 'location',
    'path' => '/my/path',
    'request_headers' => ["set SSL_CLIENT_S_DN \"admin\""],
    'requires' => ["expr %{SSL_CLIENT_S_DN_CN} == \"${somevar}\""],
  },
]

@Ramesh7 Ramesh7 added jira and removed jira labels Aug 4, 2023
@Ramesh7 Ramesh7 added the jira label Aug 30, 2023
@Ramesh7
Copy link
Contributor

Ramesh7 commented Sep 20, 2023

Thank you, @ekohl, for your contributions. @sergey-ganchuk, we haven't received any feedback from you yet. Could you please review and confirm if it is functioning as anticipated for you?

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

No branches or pull requests

4 participants