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

Deleting default files for CentOS/RedHat and ssl default file #131

Closed
wants to merge 2 commits into from
Closed

Deleting default files for CentOS/RedHat and ssl default file #131

wants to merge 2 commits into from

Conversation

horacimacias
Copy link

This is an attempt to solve issues:

#81 #21

In summary the default vhost file variable now holds an array, and there is a variable for ssl vhosts as well.
Looks like the set of default files varies depending on OS and Apache version; perhaps there is a better way to organise the variables.

@nuncanada
Copy link

There is a line "Listen 443 https" in ssl.conf that is necessary. You simply delete it, it needs to be present somewhere...

@horacimacias
Copy link
Author

sorry I'm not sure I follow you.
I don't think I modified any ssl.conf file or removed that Listen line myself on the changes.
Can you please elaborate?

@nuncanada
Copy link

nuncanada commented Jul 6, 2017 via email

@horacimacias
Copy link
Author

the change I'm suggesting is to allow users to configure whether default files should be removed or not.
It's up to you to choose that or not. If you choose to have the role remove the file, it will be removed.
Yes, Listen 443 and anything else on ssl.conf will be deleted, because you requested that.
As long as the user of the role has the choice, I don't see that as a problem, do you?

On your "Apache won't listen to port 443 if ssl.conf is removed, because in
http.conf it only has the Listen 80 directive.
"
that's correct; if you don't have Listen 443 then apache won't listen in 443.
That's still a valid apache configuration, isn't it?
I'm not sure I see the problem. if a user wants to setup apache to not listen in 443 then it needs to be able to delete the default ssl.conf file (as this role allows) and apache will still start just fine.

@LukeHandle
Copy link

I would suggest blanking the file out instead of absent as further package updates will replace the missing files.

@stale
Copy link

stale bot commented May 20, 2020

This pull request has been marked 'stale' due to lack of recent activity. If there is no further activity, the PR will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark pull requests as stale.

@stale stale bot added the stale label May 20, 2020
@stale
Copy link

stale bot commented Jun 19, 2020

This pull request has been closed due to inactivity. If you feel this is in error, please reopen the pull request or file a new PR with the relevant details.

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

Successfully merging this pull request may close these issues.

4 participants