-
-
Notifications
You must be signed in to change notification settings - Fork 881
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
Rename vhost to server.d #348
Comments
PRs gladly accepted! |
The .d convention is for files, no? Additionally, changing it would be backwards incompatible and for very little benefit. I propose we close this one without further action; it's now > 2 years later, and the module is still using vhost (and I would even say that IMHO, that's not a bad thing). |
Well, it's more about convention and standards. Also, being accurate in the terms used. I invite you to go to the #nginx IRC channel @ Freenode and say something about vHosts. They will say: "we are not apache.". Besides, that's broken logic. You might start calling '/etc' '/configuration' or mounting stuff in '/mystuff'. That doesn't make it convenient nor good at all. As obvious as it is, do as you please. It's your repo. Still, I disapprove of the lack of interest in these matters. |
I see foo.d used for directories including things, I'm not familiar with using, say, server.d (though the PR you reference uses 'server, rather than server.d, so that seems fine to me). server is also used to refer to a daemon (such as nginx), or even a system on which such a daemon runs. So from that standpoint, "virtualhost" is a lot clearer to me than "server" in terms of nomenclature, even though there are probably some cases where you may be doing things in a server block that are not a virtualhost in the traditional sense. And, I can be as pedantic as the next guy, maybe more so, but you're talking about renaming huge components of the module and introducing changes that will force people to change how they use the module for a change that, IMHO, makes things more confusing / ambiguous, rather than less. I don't think "virtual host" is only an Apache term, it's a generally and commonly used term that's used in a lot of places, including in RFCs and for things other than http content hosting. Nginx may claim that it's an "Apache term", but regardless, it's common usage. I certainly don't have any interest in getting into an argument with the Nginx folks about their terminology on IRC. https://en.wikipedia.org/wiki/Virtual_hosting It's not "my repo", I'm just helping out trying to clear out some old issues. I will defer to the modules original maintainers as well as the Voxpupuli folks. It doesn't seem like the "other PR" that @jfryman referred to in #358 ever got merged, but if you'd like to reopen it and rebase against current master, and / or open a new PR that's based on current master, we can discuss this further. cc: @bastelfreak @3flex |
Besides, in Fedora (and it's children; RHEL, CentOS, Scientific Linux, etc) you have:
... ¬_¬ Also, on Debian and children, you have these examples as well. Gentoo/Funtoo haver them. Arch Linux has them. The list goes on and on. |
Yes, that is also the convention that's used by this module (e.g., The whole sites-enabled / available thing is a Debian / Ubuntu thing... I don't personally like it or use it (and have #878 open to just put the vhosts in conf.d directly), but I think renaming them to vhosts.d or similar would break whatever tooling that system has to manipulate those symlinks. It sounds like @bastelfreak is amenable to doing the rename, though it's really going to create a lot of work for people with existing PRs based against the current codebase. |
I think we should stick with the preferred name from the nginx devs. A rename is a lot of work and a huge breaking change. We have to announce that in a minor release and do it in a major one. |
So be it. vhost is not the prefered term or name of the nginx devs. |
@renich: right, @bastelfreak is agreeing with you. So, as I see it, there are a few points of consideration:
|
Yeah, I can do this. It's been a long time since I used puppet but I don't think it is that hard. I will take a look at it and re-offer it.
I don't think I have the time for this. Sorry.
Well, I can take a look at how to do it and, possibly, do it. I'll let you know. |
Based on the discussion we had, I've renamed all instances of 'vhost' to 'server'. The main reason for this is that NginX does not uphold the concept of vHost: https://www.nginx.com/resources/wiki/start/topics/examples/server_blocks/ Stating: "Note: “VirtualHost” is an Apache term. NGINX does not have Virtual hosts, it has “Server Blocks” that use the server_name and listen directives to bind to tcp sockets." Besides, the extended use of the concept causes confusion and misunderstanding when it comes to NginX. I still need to work on two more requests.
OK, about the deprecation warning, what would be the suggestion here? Should use aliases and try to write down some logic that triggers a message when the alias is used? |
I support this. This is a large change for the module though! The alias option is good. If a hard shift is necessary, a soft change could be implemented with deprecation message for a few minor versions until a major version deprecates the change. |
This closes voxpupuli#348 and closes voxpupuli#932. It was created by running git ls-files | xargs -i{} sed -i -e 's/vhost/server/g' {} and manually fixing lint issues and renaming all files called '*vhost*'.
Handling in #968 |
I'd rename vhost to server.d for the following reasons:
The text was updated successfully, but these errors were encountered: