Perfect guideline for dummies to: "How To Configure Nginx as a Front End Proxy for Apache"
What's the point of running a forum application from the root of the site and also from a subdomain of the same site. I doubt if that's what you want. If you wish to run it from a subdomain of caffeh.com, which assumes that there is a Web app running on caffeh.com, the the url should be forum.caffeh.com. If from a subfolder of caffeh.com, it should be caffeh.com/forum.
Both setups require a different VirtualHost configuration.
So, which one do you want?
@planner you bet it right! I want ONLY nodebb to run @forum.caffeh.com, planning to install YUI or Docpad in the caffeh.com and to let my server IP empty (or default nginx file)
I think my problem is that I have disabled all virtualhost support, that forum is my "default virtual host". How to fix that?
We you've got to take another look at your configuration, because right now, your server IP is not empty or running the default Nginx file
@xpcontact Right now, since NodeBB is the only virtual host, any requests to your server will cause it to load the NodeBB.
Note this line:
This means that nginx will specifically listen for requests to
forum.caffeh.com, but if a request comes in requesting
caffeh.com, and it does not match, it will load the first virtual host it finds. For some further reading, click here
Once you set up docpad and set up its own proxy listening to
caffeh.com, nginx will no longer redirect requests to that url to NodeBB.
@planner I usually do a daily search for nodebb on google (results from past 24 hours) and I routinely find your NodeBB @ linuxbsdos.com on the list. Your forum is on port 4567 so I was wondering if you had any issues routing it to something like forum.linuxbsdos.com etc.
It's not even supposed to show up on search engines yet, because I've not made it public and don't intend to until the end of the month. I'm waiting for key features to be implemented before it goes public, so I'm taking this time to populate it with quality content
But, yes, it's on the port default port because I'm still trying to figure out how to route it to linuxbsdos.com/forum. I don't want to go the subdomain route.
If you are wondering what features I'm holding out for, email notifications and anti-spam registration are tops.
okay FYI there's a robots.txt editor in the ACP if you really didn't want it to show up on google search