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

Any way to specify multiple listening ports? #433

Closed
pablokbs opened this issue Sep 3, 2014 · 4 comments
Closed

Any way to specify multiple listening ports? #433

pablokbs opened this issue Sep 3, 2014 · 4 comments
Labels
enhancement New feature or request

Comments

@pablokbs
Copy link
Contributor

pablokbs commented Sep 3, 2014

I'm trying to create a vhost like this:

server {
    listen 80 default_server;
    listen 81;

But the listen_port value must be an integer, is there a way I can specify 2 (or more) listening ports to a vhost without the need to duplicate the vhost?

Thanks, great module.

@pablokbs
Copy link
Contributor Author

pablokbs commented Sep 3, 2014

I'm thinking that I could use vhost_cfg_prepend for this.

@3flex
Copy link
Contributor

3flex commented Sep 3, 2014

Hi @pablokbs right now that's the best option. The server definitions currently only permit a single IPv4 listen directive and a single IPv6 listen directive.

PRs welcome to add additional functionality here.

@pablokbs
Copy link
Contributor Author

pablokbs commented Sep 3, 2014

Yep, I will try to write something, thanks!

@wyardley
Copy link
Collaborator

wyardley commented Oct 8, 2016

I'm going to close this, since there doesn't seem to have been a PR, it's been quite some time, and there is a workaround mentioned.

@wyardley wyardley closed this as completed Oct 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants