Trick to running Nginx with Vagrant?

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

Trick to running Nginx with Vagrant?

French Fry
I've tried a number of configurations , i.e. forwarding ports (guest and host) as well as a private network.  Nginx listens on port 80.  The Nginx server can be seen if I have guest: 80 and host: 8080.   When I start up the web server it runs fine but Nginx seems to have no recognition of it.  Without the private network they are both on 0.0.0.0 or 127.0.0.1 (as 0.0.0.0 resolves too anyway) as defined in the etc/host. With the private network, same deal.

I'm trying to rule the possibility of something I might be doing wrong in Vagrant. Obviously I'm trying to do this via TCP , not sockets.  If anyone knows ANYTHING to try I'd be happy to hear.

Thanks
FF

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/e4be3198-eb93-4067-9ab4-fe6529135c64%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Trick to running Nginx with Vagrant?

Alvaro Miranda Aguilera
can you share a github repo of the Vagrantfile and the scripts?

Can be se-linux can be iptables, can be listen, can be virtualhost, etc.

so if you what you have, I can just vagrant up and test.

alvaro.

On Tue, Oct 31, 2017 at 1:32 AM, French Fry <[hidden email]> wrote:
I've tried a number of configurations , i.e. forwarding ports (guest and host) as well as a private network.  Nginx listens on port 80.  The Nginx server can be seen if I have guest: 80 and host: 8080.   When I start up the web server it runs fine but Nginx seems to have no recognition of it.  Without the private network they are both on 0.0.0.0 or 127.0.0.1 (as 0.0.0.0 resolves too anyway) as defined in the etc/host. With the private network, same deal.

I'm trying to rule the possibility of something I might be doing wrong in Vagrant. Obviously I'm trying to do this via TCP , not sockets.  If anyone knows ANYTHING to try I'd be happy to hear.

Thanks
FF

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/e4be3198-eb93-4067-9ab4-fe6529135c64%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alvaro

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/CAHqq0ex86w_DLb8CsG9BVj5wGzfeN%2ByXFbtTy-y6HEzPiuEJBQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Trick to running Nginx with Vagrant?

French Fry
Alright, maybe I'll need to up the scripts.

For the iptables , all I can get is this:
vagrant@vagrant:~$ sudo iptables --list-rules
-P INPUT ACCEPT
-P FORWARD ACCEPT
-P OUTPUT ACCEPT
vagrant@vagrant:~$

Re selinux. I tried 
getenforce and sestatus both return command not found 
There is a selinux conf file, only two lines un-commented 
module-store = direct
expand-check=0

I don't believe I need VirtualHosts because I only have one site.

Right now I have Niginx on guest 80, I can get the Nginx page at 8080
Web with Thin is running on 3000, can get at 4567.  Putting aside possible problems in my conf file or vagrantfile, - from the tcp side if they are both running on 127.0.0.1 should Niginx be able to see the app server?

Thanks
FF





On Tuesday, October 31, 2017 at 3:52:18 AM UTC-6, Alvaro Miranda Aguilera wrote:
can you share a github repo of the Vagrantfile and the scripts?

Can be se-linux can be iptables, can be listen, can be virtualhost, etc.

so if you what you have, I can just vagrant up and test.

alvaro.

On Tue, Oct 31, 2017 at 1:32 AM, French Fry <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="cxiPo7GSCQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">samb...@...> wrote:
I've tried a number of configurations , i.e. forwarding ports (guest and host) as well as a private network.  Nginx listens on port 80.  The Nginx server can be seen if I have guest: 80 and host: 8080.   When I start up the web server it runs fine but Nginx seems to have no recognition of it.  Without the private network they are both on 0.0.0.0 or 127.0.0.1 (as 0.0.0.0 resolves too anyway) as defined in the etc/host. With the private network, same deal.

I'm trying to rule the possibility of something I might be doing wrong in Vagrant. Obviously I'm trying to do this via TCP , not sockets.  If anyone knows ANYTHING to try I'd be happy to hear.

Thanks
FF

--
This mailing list is governed under the HashiCorp Community Guidelines - <a href="https://www.hashicorp.com/community-guidelines.html" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.hashicorp.com%2Fcommunity-guidelines.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGHa_CaKfZaJiwbkUndUQbVGlQCDw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.hashicorp.com%2Fcommunity-guidelines.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGHa_CaKfZaJiwbkUndUQbVGlQCDw&#39;;return true;">https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: <a href="https://github.com/mitchellh/vagrant/issues" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmitchellh%2Fvagrant%2Fissues\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHxcA5DuHlQlPInMi_k1Pz4pMNqNw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmitchellh%2Fvagrant%2Fissues\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHxcA5DuHlQlPInMi_k1Pz4pMNqNw&#39;;return true;">https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="cxiPo7GSCQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">vagrant-up+...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/vagrant-up/e4be3198-eb93-4067-9ab4-fe6529135c64%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/vagrant-up/e4be3198-eb93-4067-9ab4-fe6529135c64%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/vagrant-up/e4be3198-eb93-4067-9ab4-fe6529135c64%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/vagrant-up/e4be3198-eb93-4067-9ab4-fe6529135c64%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.



--
Alvaro

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/9448d48e-b71b-4aa7-a39d-2f85f382135b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Trick to running Nginx with Vagrant?

peter.folk01
not sure, what exactly your problem is, but I have nginx just working fine on Ubuntu 16.04 in Vagrant

On Tue, Oct 31, 2017 at 12:00 PM, French Fry <[hidden email]> wrote:
Alright, maybe I'll need to up the scripts.

For the iptables , all I can get is this:
vagrant@vagrant:~$ sudo iptables --list-rules
-P INPUT ACCEPT
-P FORWARD ACCEPT
-P OUTPUT ACCEPT
vagrant@vagrant:~$

Re selinux. I tried 
getenforce and sestatus both return command not found 
There is a selinux conf file, only two lines un-commented 
module-store = direct
expand-check=0

I don't believe I need VirtualHosts because I only have one site.

Right now I have Niginx on guest 80, I can get the Nginx page at 8080
Web with Thin is running on 3000, can get at 4567.  Putting aside possible problems in my conf file or vagrantfile, - from the tcp side if they are both running on 127.0.0.1 should Niginx be able to see the app server?

Thanks
FF





On Tuesday, October 31, 2017 at 3:52:18 AM UTC-6, Alvaro Miranda Aguilera wrote:
can you share a github repo of the Vagrantfile and the scripts?

Can be se-linux can be iptables, can be listen, can be virtualhost, etc.

so if you what you have, I can just vagrant up and test.

alvaro.

On Tue, Oct 31, 2017 at 1:32 AM, French Fry <[hidden email]> wrote:
I've tried a number of configurations , i.e. forwarding ports (guest and host) as well as a private network.  Nginx listens on port 80.  The Nginx server can be seen if I have guest: 80 and host: 8080.   When I start up the web server it runs fine but Nginx seems to have no recognition of it.  Without the private network they are both on 0.0.0.0 or 127.0.0.1 (as 0.0.0.0 resolves too anyway) as defined in the etc/host. With the private network, same deal.

I'm trying to rule the possibility of something I might be doing wrong in Vagrant. Obviously I'm trying to do this via TCP , not sockets.  If anyone knows ANYTHING to try I'd be happy to hear.

Thanks
FF

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/e4be3198-eb93-4067-9ab4-fe6529135c64%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alvaro

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/9448d48e-b71b-4aa7-a39d-2f85f382135b%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/CAP5xNFL7VSgDhi2tn2aO4CUyekf7td7oy4TXaD_Wc-%2BSk%2BNj2w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Trick to running Nginx with Vagrant?

French Fry

I know it is not uncommon that Rails/ Ruby web servers generally only will work on 0.0.0.0:3000 (in development).  So that is what I run my dev server on and host is port 4567.  Yet if I try say, 127.0.01 , server will connect but I can't get the page. 

Ngnix works, but is only seeing what is on it's own ports, in other words, 80 is guest, 8080 is host.  If I do a localhost:8080 Niginx will go to the correct files it's just doesn't respond to any other port, even with server set to _: in my conf file.

One thing maybe weird, nmap shows port 3000/tcp but says ppp is the service.


On Wednesday, November 1, 2017 at 1:02:36 AM UTC-6, Peter Folk wrote:
not sure, what exactly your problem is, but I have nginx just working fine on Ubuntu 16.04 in Vagrant

On Tue, Oct 31, 2017 at 12:00 PM, French Fry <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="QIi3EKoOBwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">samb...@...> wrote:
Alright, maybe I'll need to up the scripts.

For the iptables , all I can get is this:
vagrant@vagrant:~$ sudo iptables --list-rules
-P INPUT ACCEPT
-P FORWARD ACCEPT
-P OUTPUT ACCEPT
vagrant@vagrant:~$

Re selinux. I tried 
getenforce and sestatus both return command not found 
There is a selinux conf file, only two lines un-commented 
module-store = direct
expand-check=0

I don't believe I need VirtualHosts because I only have one site.

Right now I have Niginx on guest 80, I can get the Nginx page at 8080
Web with Thin is running on 3000, can get at 4567.  Putting aside possible problems in my conf file or vagrantfile, - from the tcp side if they are both running on 127.0.0.1 should Niginx be able to see the app server?

Thanks
FF





On Tuesday, October 31, 2017 at 3:52:18 AM UTC-6, Alvaro Miranda Aguilera wrote:
can you share a github repo of the Vagrantfile and the scripts?

Can be se-linux can be iptables, can be listen, can be virtualhost, etc.

so if you what you have, I can just vagrant up and test.

alvaro.

On Tue, Oct 31, 2017 at 1:32 AM, French Fry <[hidden email]> wrote:
I've tried a number of configurations , i.e. forwarding ports (guest and host) as well as a private network.  Nginx listens on port 80.  The Nginx server can be seen if I have guest: 80 and host: 8080.   When I start up the web server it runs fine but Nginx seems to have no recognition of it.  Without the private network they are both on 0.0.0.0 or 127.0.0.1 (as 0.0.0.0 resolves too anyway) as defined in the etc/host. With the private network, same deal.

I'm trying to rule the possibility of something I might be doing wrong in Vagrant. Obviously I'm trying to do this via TCP , not sockets.  If anyone knows ANYTHING to try I'd be happy to hear.

Thanks
FF

--
This mailing list is governed under the HashiCorp Community Guidelines - <a href="https://www.hashicorp.com/community-guidelines.html" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.hashicorp.com%2Fcommunity-guidelines.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGHa_CaKfZaJiwbkUndUQbVGlQCDw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.hashicorp.com%2Fcommunity-guidelines.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGHa_CaKfZaJiwbkUndUQbVGlQCDw&#39;;return true;">https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: <a href="https://github.com/mitchellh/vagrant/issues" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmitchellh%2Fvagrant%2Fissues\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHxcA5DuHlQlPInMi_k1Pz4pMNqNw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmitchellh%2Fvagrant%2Fissues\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHxcA5DuHlQlPInMi_k1Pz4pMNqNw&#39;;return true;">https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/vagrant-up/e4be3198-eb93-4067-9ab4-fe6529135c64%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/vagrant-up/e4be3198-eb93-4067-9ab4-fe6529135c64%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/vagrant-up/e4be3198-eb93-4067-9ab4-fe6529135c64%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/vagrant-up/e4be3198-eb93-4067-9ab4-fe6529135c64%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.



--
Alvaro

--
This mailing list is governed under the HashiCorp Community Guidelines - <a href="https://www.hashicorp.com/community-guidelines.html" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.hashicorp.com%2Fcommunity-guidelines.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGHa_CaKfZaJiwbkUndUQbVGlQCDw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.hashicorp.com%2Fcommunity-guidelines.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGHa_CaKfZaJiwbkUndUQbVGlQCDw&#39;;return true;">https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: <a href="https://github.com/mitchellh/vagrant/issues" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmitchellh%2Fvagrant%2Fissues\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHxcA5DuHlQlPInMi_k1Pz4pMNqNw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmitchellh%2Fvagrant%2Fissues\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHxcA5DuHlQlPInMi_k1Pz4pMNqNw&#39;;return true;">https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="QIi3EKoOBwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">vagrant-up+...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/vagrant-up/9448d48e-b71b-4aa7-a39d-2f85f382135b%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/vagrant-up/9448d48e-b71b-4aa7-a39d-2f85f382135b%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/vagrant-up/9448d48e-b71b-4aa7-a39d-2f85f382135b%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/vagrant-up/9448d48e-b71b-4aa7-a39d-2f85f382135b%40googlegroups.com.

For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/80a72ce2-dce5-4daa-9d8d-ba2c05022794%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Trick to running Nginx with Vagrant?

Alvaro Miranda Aguilera
can you share the output of (from the guest)

netstat -anp | grep -i listen


On Wed, Nov 1, 2017 at 5:04 PM, French Fry <[hidden email]> wrote:

I know it is not uncommon that Rails/ Ruby web servers generally only will work on 0.0.0.0:3000 (in development).  So that is what I run my dev server on and host is port 4567.  Yet if I try say, 127.0.01 , server will connect but I can't get the page. 

Ngnix works, but is only seeing what is on it's own ports, in other words, 80 is guest, 8080 is host.  If I do a localhost:8080 Niginx will go to the correct files it's just doesn't respond to any other port, even with server set to _: in my conf file.

One thing maybe weird, nmap shows port 3000/tcp but says ppp is the service.


On Wednesday, November 1, 2017 at 1:02:36 AM UTC-6, Peter Folk wrote:
not sure, what exactly your problem is, but I have nginx just working fine on Ubuntu 16.04 in Vagrant

On Tue, Oct 31, 2017 at 12:00 PM, French Fry <[hidden email]> wrote:
Alright, maybe I'll need to up the scripts.

For the iptables , all I can get is this:
vagrant@vagrant:~$ sudo iptables --list-rules
-P INPUT ACCEPT
-P FORWARD ACCEPT
-P OUTPUT ACCEPT
vagrant@vagrant:~$

Re selinux. I tried 
getenforce and sestatus both return command not found 
There is a selinux conf file, only two lines un-commented 
module-store = direct
expand-check=0

I don't believe I need VirtualHosts because I only have one site.

Right now I have Niginx on guest 80, I can get the Nginx page at 8080
Web with Thin is running on 3000, can get at 4567.  Putting aside possible problems in my conf file or vagrantfile, - from the tcp side if they are both running on 127.0.0.1 should Niginx be able to see the app server?

Thanks
FF





On Tuesday, October 31, 2017 at 3:52:18 AM UTC-6, Alvaro Miranda Aguilera wrote:
can you share a github repo of the Vagrantfile and the scripts?

Can be se-linux can be iptables, can be listen, can be virtualhost, etc.

so if you what you have, I can just vagrant up and test.

alvaro.

On Tue, Oct 31, 2017 at 1:32 AM, French Fry <[hidden email]> wrote:
I've tried a number of configurations , i.e. forwarding ports (guest and host) as well as a private network.  Nginx listens on port 80.  The Nginx server can be seen if I have guest: 80 and host: 8080.   When I start up the web server it runs fine but Nginx seems to have no recognition of it.  Without the private network they are both on 0.0.0.0 or 127.0.0.1 (as 0.0.0.0 resolves too anyway) as defined in the etc/host. With the private network, same deal.

I'm trying to rule the possibility of something I might be doing wrong in Vagrant. Obviously I'm trying to do this via TCP , not sockets.  If anyone knows ANYTHING to try I'd be happy to hear.

Thanks
FF

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]m.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/e4be3198-eb93-4067-9ab4-fe6529135c64%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alvaro

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/9448d48e-b71b-4aa7-a39d-2f85f382135b%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/80a72ce2-dce5-4daa-9d8d-ba2c05022794%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alvaro

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/CAHqq0ezVz4z%2B6oZWM518iPGU9UAmYOejFSC0OFNcqaYHYkfgBQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Trick to running Nginx with Vagrant?

French Fry
Alvaro, here is the Netstat (-anp | grep -i listen). 

unix  2      [ ACC ]     STREAM     LISTENING     20454    2767/systemd        /run/user/1000/systemd/private
unix  
2      [ ACC ]     SEQPACKET  LISTENING     9974     -                   /run/udev/control
unix  
2      [ ACC ]     STREAM     LISTENING     17042    -                   /var/run/postgresql/.s.PGSQL.5432
unix  
2      [ ACC ]     STREAM     LISTENING     9780     -                   /run/systemd/private
unix  
2      [ ACC ]     STREAM     LISTENING     9790     -                   /run/systemd/fsck.progress
unix  
2      [ ACC ]     STREAM     LISTENING     9791     -                   /run/systemd/journal/stdout
unix  
2      [ ACC ]     STREAM     LISTENING     9794     -                   /run/lvm/lvmpolld.socket
unix  
2      [ ACC ]     STREAM     LISTENING     9838     -                   /run/lvm/lvmetad.socket
unix  
2      [ ACC ]     STREAM     LISTENING     12994    -                   /run/snapd.socket
unix  
2      [ ACC ]     STREAM     LISTENING     12997    -                   /var/lib/lxd/unix.socket
unix  
2      [ ACC ]     STREAM     LISTENING     15348    -                   @ISCSIADM_ABSTRACT_NAMESPACE
unix  
2      [ ACC ]     STREAM     LISTENING     12993    -                   /run/rpcbind.sock
unix  
2      [ ACC ]     STREAM     LISTENING     12995    -                   /run/snapd-snap.socket
unix  
2      [ ACC ]     STREAM     LISTENING     12996    -                   /run/uuidd/request
unix  
2      [ ACC ]     STREAM     LISTENING     13000    -                   /var/run/dbus/system_bus_socket
unix  
2      [ ACC ]     STREAM     LISTENING     13001    -                   /run/acpid.socket


This is what I have of relevance in my vagrant file

config.vm.network "forwarded_port", guest: 80, host: 8080, protocol: "tcp", host_ip: "127.0.0.1"
config
.vm.network "forwarded_port", guest: 80, host: 8080, protocol: "udp", host_ip: "127.0.0.1"
config
.vm.network "forwarded_port", guest: 8000, host: 4567, protocol: "tcp", host_ip: "127.0.0.1"
config
.vm.network "forwarded_port", guest: 8000, host: 4567, protocol: "udp", host_ip: "127.0.0.1"


Nginx is on 80 / 8080 and Ruby on 8000 / 4567.  Though these don't show up in this particular netstat.  Just going to mention though, using either localhost:8080 or 127.0.0.1 I can see my nginx.conf file working, but once I go to the app, nothing.  Maybe I should try to make it work with sockets instead. 

On Wednesday, November 1, 2017 at 2:11:36 PM UTC-6, Alvaro Miranda Aguilera wrote:
can you share the output of (from the guest)

netstat -anp | grep -i listen


On Wed, Nov 1, 2017 at 5:04 PM, French Fry <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="eVpFP7g5BwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">samb...@...> wrote:

I know it is not uncommon that Rails/ Ruby web servers generally only will work on <a href="http://0.0.0.0:3000" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F0.0.0.0%3A3000\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH3MDp1gVdKx4LdHXZVhjWlIrcGIw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F0.0.0.0%3A3000\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH3MDp1gVdKx4LdHXZVhjWlIrcGIw&#39;;return true;">0.0.0.0:3000 (in development).  So that is what I run my dev server on and host is port 4567.  Yet if I try say, 127.0.01 , server will connect but I can't get the page. 

Ngnix works, but is only seeing what is on it's own ports, in other words, 80 is guest, 8080 is host.  If I do a localhost:8080 Niginx will go to the correct files it's just doesn't respond to any other port, even with server set to _: in my conf file.

One thing maybe weird, nmap shows port 3000/tcp but says ppp is the service.


On Wednesday, November 1, 2017 at 1:02:36 AM UTC-6, Peter Folk wrote:
not sure, what exactly your problem is, but I have nginx just working fine on Ubuntu 16.04 in Vagrant

On Tue, Oct 31, 2017 at 12:00 PM, French Fry <[hidden email]> wrote:
Alright, maybe I'll need to up the scripts.

For the iptables , all I can get is this:
vagrant@vagrant:~$ sudo iptables --list-rules
-P INPUT ACCEPT
-P FORWARD ACCEPT
-P OUTPUT ACCEPT
vagrant@vagrant:~$

Re selinux. I tried 
getenforce and sestatus both return command not found 
There is a selinux conf file, only two lines un-commented 
module-store = direct
expand-check=0

I don't believe I need VirtualHosts because I only have one site.

Right now I have Niginx on guest 80, I can get the Nginx page at 8080
Web with Thin is running on 3000, can get at 4567.  Putting aside possible problems in my conf file or vagrantfile, - from the tcp side if they are both running on 127.0.0.1 should Niginx be able to see the app server?

Thanks
FF





On Tuesday, October 31, 2017 at 3:52:18 AM UTC-6, Alvaro Miranda Aguilera wrote:
can you share a github repo of the Vagrantfile and the scripts?

Can be se-linux can be iptables, can be listen, can be virtualhost, etc.

so if you what you have, I can just vagrant up and test.

alvaro.

On Tue, Oct 31, 2017 at 1:32 AM, French Fry <[hidden email]> wrote:
I've tried a number of configurations , i.e. forwarding ports (guest and host) as well as a private network.  Nginx listens on port 80.  The Nginx server can be seen if I have guest: 80 and host: 8080.   When I start up the web server it runs fine but Nginx seems to have no recognition of it.  Without the private network they are both on 0.0.0.0 or 127.0.0.1 (as 0.0.0.0 resolves too anyway) as defined in the etc/host. With the private network, same deal.

I'm trying to rule the possibility of something I might be doing wrong in Vagrant. Obviously I'm trying to do this via TCP , not sockets.  If anyone knows ANYTHING to try I'd be happy to hear.

Thanks
FF

--
This mailing list is governed under the HashiCorp Community Guidelines - <a href="https://www.hashicorp.com/community-guidelines.html" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.hashicorp.com%2Fcommunity-guidelines.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGHa_CaKfZaJiwbkUndUQbVGlQCDw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.hashicorp.com%2Fcommunity-guidelines.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGHa_CaKfZaJiwbkUndUQbVGlQCDw&#39;;return true;">https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: <a href="https://github.com/mitchellh/vagrant/issues" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmitchellh%2Fvagrant%2Fissues\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHxcA5DuHlQlPInMi_k1Pz4pMNqNw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmitchellh%2Fvagrant%2Fissues\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHxcA5DuHlQlPInMi_k1Pz4pMNqNw&#39;;return true;">https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/vagrant-up/e4be3198-eb93-4067-9ab4-fe6529135c64%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/vagrant-up/e4be3198-eb93-4067-9ab4-fe6529135c64%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/vagrant-up/e4be3198-eb93-4067-9ab4-fe6529135c64%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/vagrant-up/e4be3198-eb93-4067-9ab4-fe6529135c64%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.



--
Alvaro

--
This mailing list is governed under the HashiCorp Community Guidelines - <a href="https://www.hashicorp.com/community-guidelines.html" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.hashicorp.com%2Fcommunity-guidelines.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGHa_CaKfZaJiwbkUndUQbVGlQCDw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.hashicorp.com%2Fcommunity-guidelines.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGHa_CaKfZaJiwbkUndUQbVGlQCDw&#39;;return true;">https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: <a href="https://github.com/mitchellh/vagrant/issues" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmitchellh%2Fvagrant%2Fissues\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHxcA5DuHlQlPInMi_k1Pz4pMNqNw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmitchellh%2Fvagrant%2Fissues\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHxcA5DuHlQlPInMi_k1Pz4pMNqNw&#39;;return true;">https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/vagrant-up/9448d48e-b71b-4aa7-a39d-2f85f382135b%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/vagrant-up/9448d48e-b71b-4aa7-a39d-2f85f382135b%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/vagrant-up/9448d48e-b71b-4aa7-a39d-2f85f382135b%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/vagrant-up/9448d48e-b71b-4aa7-a39d-2f85f382135b%40googlegroups.com.

For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
This mailing list is governed under the HashiCorp Community Guidelines - <a href="https://www.hashicorp.com/community-guidelines.html" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.hashicorp.com%2Fcommunity-guidelines.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGHa_CaKfZaJiwbkUndUQbVGlQCDw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.hashicorp.com%2Fcommunity-guidelines.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGHa_CaKfZaJiwbkUndUQbVGlQCDw&#39;;return true;">https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: <a href="https://github.com/mitchellh/vagrant/issues" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmitchellh%2Fvagrant%2Fissues\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHxcA5DuHlQlPInMi_k1Pz4pMNqNw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmitchellh%2Fvagrant%2Fissues\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHxcA5DuHlQlPInMi_k1Pz4pMNqNw&#39;;return true;">https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="eVpFP7g5BwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">vagrant-up+...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/vagrant-up/80a72ce2-dce5-4daa-9d8d-ba2c05022794%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/vagrant-up/80a72ce2-dce5-4daa-9d8d-ba2c05022794%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/vagrant-up/80a72ce2-dce5-4daa-9d8d-ba2c05022794%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/vagrant-up/80a72ce2-dce5-4daa-9d8d-ba2c05022794%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.



--
Alvaro

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/a439519a-3699-4781-a0f9-8e4ab233c3f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Trick to running Nginx with Vagrant?

Alvaro Miranda Aguilera
uhm there is nothing listening

can you run this as sudo and confim this is from the guest?

sudo netstat -anp 

if too long, perhaps a gist (gist.github.com) will do the trick.


On Wed, Nov 1, 2017 at 11:10 PM, French Fry <[hidden email]> wrote:
Alvaro, here is the Netstat (-anp | grep -i listen). 

unix  2      [ ACC ]     STREAM     LISTENING     20454    2767/systemd        /run/user/1000/systemd/private
unix  
2      [ ACC ]     SEQPACKET  LISTENING     9974     -                   /run/udev/control
unix  
2      [ ACC ]     STREAM     LISTENING     17042    -                   /var/run/postgresql/.s.PGSQL.5432
unix  
2      [ ACC ]     STREAM     LISTENING     9780     -                   /run/systemd/private
unix  
2      [ ACC ]     STREAM     LISTENING     9790     -                   /run/systemd/fsck.progress
unix  
2      [ ACC ]     STREAM     LISTENING     9791     -                   /run/systemd/journal/stdout
unix  
2      [ ACC ]     STREAM     LISTENING     9794     -                   /run/lvm/lvmpolld.socket
unix  
2      [ ACC ]     STREAM     LISTENING     9838     -                   /run/lvm/lvmetad.socket
unix  
2      [ ACC ]     STREAM     LISTENING     12994    -                   /run/snapd.socket
unix  
2      [ ACC ]     STREAM     LISTENING     12997    -                   /var/lib/lxd/unix.socket
unix  
2      [ ACC ]     STREAM     LISTENING     15348    -                   @ISCSIADM_ABSTRACT_NAMESPACE
unix  
2      [ ACC ]     STREAM     LISTENING     12993    -                   /run/rpcbind.sock
unix  
2      [ ACC ]     STREAM     LISTENING     12995    -                   /run/snapd-snap.socket
unix  
2      [ ACC ]     STREAM     LISTENING     12996    -                   /run/uuidd/request
unix  
2      [ ACC ]     STREAM     LISTENING     13000    -                   /var/run/dbus/system_bus_socket
unix  
2      [ ACC ]     STREAM     LISTENING     13001    -                   /run/acpid.socket


This is what I have of relevance in my vagrant file

config.vm.network "forwarded_port", guest: 80, host: 8080, protocol: "tcp", host_ip: "127.0.0.1"
config
.vm.network "forwarded_port", guest: 80, host: 8080, protocol: "udp", host_ip: "127.0.0.1"
config
.vm.network "forwarded_port", guest: 8000, host: 4567, protocol: "tcp", host_ip: "127.0.0.1"
config
.vm.network "forwarded_port", guest: 8000, host: 4567, protocol: "udp", host_ip: "127.0.0.1"


Nginx is on 80 / 8080 and Ruby on 8000 / 4567.  Though these don't show up in this particular netstat.  Just going to mention though, using either localhost:8080 or 127.0.0.1 I can see my nginx.conf file working, but once I go to the app, nothing.  Maybe I should try to make it work with sockets instead. 

On Wednesday, November 1, 2017 at 2:11:36 PM UTC-6, Alvaro Miranda Aguilera wrote:
can you share the output of (from the guest)

netstat -anp | grep -i listen


On Wed, Nov 1, 2017 at 5:04 PM, French Fry <[hidden email]> wrote:

I know it is not uncommon that Rails/ Ruby web servers generally only will work on 0.0.0.0:3000 (in development).  So that is what I run my dev server on and host is port 4567.  Yet if I try say, 127.0.01 , server will connect but I can't get the page. 

Ngnix works, but is only seeing what is on it's own ports, in other words, 80 is guest, 8080 is host.  If I do a localhost:8080 Niginx will go to the correct files it's just doesn't respond to any other port, even with server set to _: in my conf file.

One thing maybe weird, nmap shows port 3000/tcp but says ppp is the service.


On Wednesday, November 1, 2017 at 1:02:36 AM UTC-6, Peter Folk wrote:
not sure, what exactly your problem is, but I have nginx just working fine on Ubuntu 16.04 in Vagrant

On Tue, Oct 31, 2017 at 12:00 PM, French Fry <[hidden email]> wrote:
Alright, maybe I'll need to up the scripts.

For the iptables , all I can get is this:
vagrant@vagrant:~$ sudo iptables --list-rules
-P INPUT ACCEPT
-P FORWARD ACCEPT
-P OUTPUT ACCEPT
vagrant@vagrant:~$

Re selinux. I tried 
getenforce and sestatus both return command not found 
There is a selinux conf file, only two lines un-commented 
module-store = direct
expand-check=0

I don't believe I need VirtualHosts because I only have one site.

Right now I have Niginx on guest 80, I can get the Nginx page at 8080
Web with Thin is running on 3000, can get at 4567.  Putting aside possible problems in my conf file or vagrantfile, - from the tcp side if they are both running on 127.0.0.1 should Niginx be able to see the app server?

Thanks
FF





On Tuesday, October 31, 2017 at 3:52:18 AM UTC-6, Alvaro Miranda Aguilera wrote:
can you share a github repo of the Vagrantfile and the scripts?

Can be se-linux can be iptables, can be listen, can be virtualhost, etc.

so if you what you have, I can just vagrant up and test.

alvaro.

On Tue, Oct 31, 2017 at 1:32 AM, French Fry <[hidden email]> wrote:
I've tried a number of configurations , i.e. forwarding ports (guest and host) as well as a private network.  Nginx listens on port 80.  The Nginx server can be seen if I have guest: 80 and host: 8080.   When I start up the web server it runs fine but Nginx seems to have no recognition of it.  Without the private network they are both on 0.0.0.0 or 127.0.0.1 (as 0.0.0.0 resolves too anyway) as defined in the etc/host. With the private network, same deal.

I'm trying to rule the possibility of something I might be doing wrong in Vagrant. Obviously I'm trying to do this via TCP , not sockets.  If anyone knows ANYTHING to try I'd be happy to hear.

Thanks
FF

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]m.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/e4be3198-eb93-4067-9ab4-fe6529135c64%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alvaro

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]m.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/9448d48e-b71b-4aa7-a39d-2f85f382135b%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/80a72ce2-dce5-4daa-9d8d-ba2c05022794%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alvaro

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/a439519a-3699-4781-a0f9-8e4ab233c3f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alvaro

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/CAHqq0exyEi2_o8VhiANd0Z16caBU43NrCZOS5Q8KFU1ZTFovNQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Trick to running Nginx with Vagrant?

French Fry
https://gist.github.com/stuartambient/3ece8d44e060f46aa8af44a8505cfd32

On Wednesday, November 1, 2017 at 4:20:45 PM UTC-6, Alvaro Miranda Aguilera wrote:
uhm there is nothing listening

can you run this as sudo and confim this is from the guest?

sudo netstat -anp 

if too long, perhaps a gist (<a href="http://gist.github.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fgist.github.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGRWsXDI8gmejU5HXZxw_mFAigdzQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fgist.github.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGRWsXDI8gmejU5HXZxw_mFAigdzQ&#39;;return true;">gist.github.com) will do the trick.


On Wed, Nov 1, 2017 at 11:10 PM, French Fry <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="DoASZMRABwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">samb...@...> wrote:
Alvaro, here is the Netstat (-anp | grep -i listen). 

unix  2      [ ACC ]     STREAM     LISTENING     20454    2767/systemd        /run/user/1000/systemd/private
unix  
2      [ ACC ]     SEQPACKET  LISTENING     9974     -                   /run/udev/control
unix  
2      [ ACC ]     STREAM     LISTENING     17042    -                   /var/run/postgresql/.s.PGSQL.5432
unix  
2      [ ACC ]     STREAM     LISTENING     9780     -                   /run/systemd/private
unix  
2      [ ACC ]     STREAM     LISTENING     9790     -                   /run/systemd/fsck.progress
unix  
2      [ ACC ]     STREAM     LISTENING     9791     -                   /run/systemd/journal/stdout
unix  
2      [ ACC ]     STREAM     LISTENING     9794     -                   /run/lvm/lvmpolld.socket
unix  
2      [ ACC ]     STREAM     LISTENING     9838     -                   /run/lvm/lvmetad.socket
unix  
2      [ ACC ]     STREAM     LISTENING     12994    -                   /run/snapd.socket
unix  
2      [ ACC ]     STREAM     LISTENING     12997    -                   /var/lib/lxd/unix.socket
unix  
2      [ ACC ]     STREAM     LISTENING     15348    -                   @ISCSIADM_ABSTRACT_NAMESPACE
unix  
2      [ ACC ]     STREAM     LISTENING     12993    -                   /run/rpcbind.sock
unix  
2      [ ACC ]     STREAM     LISTENING     12995    -                   /run/snapd-snap.socket
unix  
2      [ ACC ]     STREAM     LISTENING     12996    -                   /run/uuidd/request
unix  
2      [ ACC ]     STREAM     LISTENING     13000    -                   /var/run/dbus/system_bus_socket
unix  
2      [ ACC ]     STREAM     LISTENING     13001    -                   /run/acpid.socket


This is what I have of relevance in my vagrant file

config.vm.network "forwarded_port", guest: 80, host: 8080, protocol: "tcp", host_ip: "127.0.0.1"
config
.vm.network "forwarded_port", guest: 80, host: 8080, protocol: "udp", host_ip: "127.0.0.1"
config
.vm.network "forwarded_port", guest: 8000, host: 4567, protocol: "tcp", host_ip: "127.0.0.1"
config
.vm.network "forwarded_port", guest: 8000, host: 4567, protocol: "udp", host_ip: "127.0.0.1"


Nginx is on 80 / 8080 and Ruby on 8000 / 4567.  Though these don't show up in this particular netstat.  Just going to mention though, using either localhost:8080 or 127.0.0.1 I can see my nginx.conf file working, but once I go to the app, nothing.  Maybe I should try to make it work with sockets instead. 

On Wednesday, November 1, 2017 at 2:11:36 PM UTC-6, Alvaro Miranda Aguilera wrote:
can you share the output of (from the guest)

netstat -anp | grep -i listen


On Wed, Nov 1, 2017 at 5:04 PM, French Fry <[hidden email]> wrote:

I know it is not uncommon that Rails/ Ruby web servers generally only will work on <a href="http://0.0.0.0:3000" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F0.0.0.0%3A3000\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH3MDp1gVdKx4LdHXZVhjWlIrcGIw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F0.0.0.0%3A3000\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH3MDp1gVdKx4LdHXZVhjWlIrcGIw&#39;;return true;">0.0.0.0:3000 (in development).  So that is what I run my dev server on and host is port 4567.  Yet if I try say, 127.0.01 , server will connect but I can't get the page. 

Ngnix works, but is only seeing what is on it's own ports, in other words, 80 is guest, 8080 is host.  If I do a localhost:8080 Niginx will go to the correct files it's just doesn't respond to any other port, even with server set to _: in my conf file.

One thing maybe weird, nmap shows port 3000/tcp but says ppp is the service.


On Wednesday, November 1, 2017 at 1:02:36 AM UTC-6, Peter Folk wrote:
not sure, what exactly your problem is, but I have nginx just working fine on Ubuntu 16.04 in Vagrant

On Tue, Oct 31, 2017 at 12:00 PM, French Fry <[hidden email]> wrote:
Alright, maybe I'll need to up the scripts.

For the iptables , all I can get is this:
vagrant@vagrant:~$ sudo iptables --list-rules
-P INPUT ACCEPT
-P FORWARD ACCEPT
-P OUTPUT ACCEPT
vagrant@vagrant:~$

Re selinux. I tried 
getenforce and sestatus both return command not found 
There is a selinux conf file, only two lines un-commented 
module-store = direct
expand-check=0

I don't believe I need VirtualHosts because I only have one site.

Right now I have Niginx on guest 80, I can get the Nginx page at 8080
Web with Thin is running on 3000, can get at 4567.  Putting aside possible problems in my conf file or vagrantfile, - from the tcp side if they are both running on 127.0.0.1 should Niginx be able to see the app server?

Thanks
FF





On Tuesday, October 31, 2017 at 3:52:18 AM UTC-6, Alvaro Miranda Aguilera wrote:
can you share a github repo of the Vagrantfile and the scripts?

Can be se-linux can be iptables, can be listen, can be virtualhost, etc.

so if you what you have, I can just vagrant up and test.

alvaro.

On Tue, Oct 31, 2017 at 1:32 AM, French Fry <[hidden email]> wrote:
I've tried a number of configurations , i.e. forwarding ports (guest and host) as well as a private network.  Nginx listens on port 80.  The Nginx server can be seen if I have guest: 80 and host: 8080.   When I start up the web server it runs fine but Nginx seems to have no recognition of it.  Without the private network they are both on 0.0.0.0 or 127.0.0.1 (as 0.0.0.0 resolves too anyway) as defined in the etc/host. With the private network, same deal.

I'm trying to rule the possibility of something I might be doing wrong in Vagrant. Obviously I'm trying to do this via TCP , not sockets.  If anyone knows ANYTHING to try I'd be happy to hear.

Thanks
FF

--
This mailing list is governed under the HashiCorp Community Guidelines - <a href="https://www.hashicorp.com/community-guidelines.html" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.hashicorp.com%2Fcommunity-guidelines.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGHa_CaKfZaJiwbkUndUQbVGlQCDw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.hashicorp.com%2Fcommunity-guidelines.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGHa_CaKfZaJiwbkUndUQbVGlQCDw&#39;;return true;">https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: <a href="https://github.com/mitchellh/vagrant/issues" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmitchellh%2Fvagrant%2Fissues\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHxcA5DuHlQlPInMi_k1Pz4pMNqNw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmitchellh%2Fvagrant%2Fissues\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHxcA5DuHlQlPInMi_k1Pz4pMNqNw&#39;;return true;">https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/vagrant-up/e4be3198-eb93-4067-9ab4-fe6529135c64%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/vagrant-up/e4be3198-eb93-4067-9ab4-fe6529135c64%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/vagrant-up/e4be3198-eb93-4067-9ab4-fe6529135c64%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/vagrant-up/e4be3198-eb93-4067-9ab4-fe6529135c64%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.



--
Alvaro

--
This mailing list is governed under the HashiCorp Community Guidelines - <a href="https://www.hashicorp.com/community-guidelines.html" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.hashicorp.com%2Fcommunity-guidelines.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGHa_CaKfZaJiwbkUndUQbVGlQCDw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.hashicorp.com%2Fcommunity-guidelines.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGHa_CaKfZaJiwbkUndUQbVGlQCDw&#39;;return true;">https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: <a href="https://github.com/mitchellh/vagrant/issues" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmitchellh%2Fvagrant%2Fissues\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHxcA5DuHlQlPInMi_k1Pz4pMNqNw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmitchellh%2Fvagrant%2Fissues\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHxcA5DuHlQlPInMi_k1Pz4pMNqNw&#39;;return true;">https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/vagrant-up/9448d48e-b71b-4aa7-a39d-2f85f382135b%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/vagrant-up/9448d48e-b71b-4aa7-a39d-2f85f382135b%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/vagrant-up/9448d48e-b71b-4aa7-a39d-2f85f382135b%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/vagrant-up/9448d48e-b71b-4aa7-a39d-2f85f382135b%40googlegroups.com.

For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
This mailing list is governed under the HashiCorp Community Guidelines - <a href="https://www.hashicorp.com/community-guidelines.html" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.hashicorp.com%2Fcommunity-guidelines.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGHa_CaKfZaJiwbkUndUQbVGlQCDw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.hashicorp.com%2Fcommunity-guidelines.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGHa_CaKfZaJiwbkUndUQbVGlQCDw&#39;;return true;">https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: <a href="https://github.com/mitchellh/vagrant/issues" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmitchellh%2Fvagrant%2Fissues\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHxcA5DuHlQlPInMi_k1Pz4pMNqNw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmitchellh%2Fvagrant%2Fissues\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHxcA5DuHlQlPInMi_k1Pz4pMNqNw&#39;;return true;">https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/vagrant-up/80a72ce2-dce5-4daa-9d8d-ba2c05022794%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/vagrant-up/80a72ce2-dce5-4daa-9d8d-ba2c05022794%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/vagrant-up/80a72ce2-dce5-4daa-9d8d-ba2c05022794%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/vagrant-up/80a72ce2-dce5-4daa-9d8d-ba2c05022794%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.



--
Alvaro

--
This mailing list is governed under the HashiCorp Community Guidelines - <a href="https://www.hashicorp.com/community-guidelines.html" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.hashicorp.com%2Fcommunity-guidelines.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGHa_CaKfZaJiwbkUndUQbVGlQCDw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.hashicorp.com%2Fcommunity-guidelines.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGHa_CaKfZaJiwbkUndUQbVGlQCDw&#39;;return true;">https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: <a href="https://github.com/mitchellh/vagrant/issues" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmitchellh%2Fvagrant%2Fissues\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHxcA5DuHlQlPInMi_k1Pz4pMNqNw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmitchellh%2Fvagrant%2Fissues\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHxcA5DuHlQlPInMi_k1Pz4pMNqNw&#39;;return true;">https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="DoASZMRABwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">vagrant-up+...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/vagrant-up/a439519a-3699-4781-a0f9-8e4ab233c3f8%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/vagrant-up/a439519a-3699-4781-a0f9-8e4ab233c3f8%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/vagrant-up/a439519a-3699-4781-a0f9-8e4ab233c3f8%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/vagrant-up/a439519a-3699-4781-a0f9-8e4ab233c3f8%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.



--
Alvaro

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/92a889f6-1008-4c9b-8423-51315864e763%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Trick to running Nginx with Vagrant?

Joaquin Menchaca
In reply to this post by French Fry
There are so many levels of troubleshooting.  Can you access service in the guest as localhost?  Nginx binded to 0.0.0.0?  Was nginx able to bind to port 80? (check logs)  On the host, was the Virtual system able to bind 8080? (nothing else ocupying that slot)?  Firewall on guest or host blocking it off?

You might want to consider using private IP address, then you can access it directly from the host, vagrant/virtualbox automatically creates virtual network infrastructure so you can access it, then you don't have to do NAT port mapping.


On Monday, October 30, 2017 at 5:32:25 PM UTC-7, French Fry wrote:
I've tried a number of configurations , i.e. forwarding ports (guest and host) as well as a private network.  Nginx listens on port 80.  The Nginx server can be seen if I have guest: 80 and host: 8080.   When I start up the web server it runs fine but Nginx seems to have no recognition of it.  Without the private network they are both on 0.0.0.0 or 127.0.0.1 (as 0.0.0.0 resolves too anyway) as defined in the etc/host. With the private network, same deal.

I'm trying to rule the possibility of something I might be doing wrong in Vagrant. Obviously I'm trying to do this via TCP , not sockets.  If anyone knows ANYTHING to try I'd be happy to hear.

Thanks
FF

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/19dd3190-eb9c-4b1f-bc0b-1915ad4415c0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Trick to running Nginx with Vagrant?

French Fry
I should have updated the post, my apologies.  I got it sorted out.  My problems were, and don't laugh, I didn't realize that the web app and server runs under Nginx. So while Nginx was on 80/8080, I expected it to work for me while the app was on 3000/4567.  Plus a poorly written conf file, which wasn't helping.

On Friday, November 10, 2017 at 12:17:39 PM UTC-7, Joaquin Menchaca wrote:
There are so many levels of troubleshooting.  Can you access service in the guest as localhost?  Nginx binded to 0.0.0.0?  Was nginx able to bind to port 80? (check logs)  On the host, was the Virtual system able to bind 8080? (nothing else ocupying that slot)?  Firewall on guest or host blocking it off?

You might want to consider using private IP address, then you can access it directly from the host, vagrant/virtualbox automatically creates virtual network infrastructure so you can access it, then you don't have to do NAT port mapping.


On Monday, October 30, 2017 at 5:32:25 PM UTC-7, French Fry wrote:
I've tried a number of configurations , i.e. forwarding ports (guest and host) as well as a private network.  Nginx listens on port 80.  The Nginx server can be seen if I have guest: 80 and host: 8080.   When I start up the web server it runs fine but Nginx seems to have no recognition of it.  Without the private network they are both on 0.0.0.0 or 127.0.0.1 (as 0.0.0.0 resolves too anyway) as defined in the etc/host. With the private network, same deal.

I'm trying to rule the possibility of something I might be doing wrong in Vagrant. Obviously I'm trying to do this via TCP , not sockets.  If anyone knows ANYTHING to try I'd be happy to hear.

Thanks
FF


--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/9c22450d-9464-4ab9-8aa5-b89a01967af9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.