install on wp site
-
@Peter-Zoltan-Keresztes aaaah!
forum.mydomain.com now succesfully loads the nodebb forum! Thank you so much!
However,
I still have mydomain.com showing Welcome to Gninx, while previously, before I installed nginx, there was a wp-sites displayed (installed via ee). I want that wp-site to be displayed on mydomain.com, and obviously not welcome screen from nginx.
Also, www.forum.mydomain.com does not work; only forum.mydomain.com. How can I resolve that?cd /etc/nginx/sites-available && ls
22222, default, forum.mydomain.com
nano forum.mydomain.com
server { listen 80; server_name mydomain.com; location / { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header Host $http_host; proxy_set_header X-NginX-Proxy true; proxy_pass http://127.0.0.1:4567/; proxy_redirect off; # Socket.IO Support proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } }
This forum.mydomain.com file is exactly the same as in the sites-enabled folder.
On digital ocean I now have, under Networking, Domains: 1. forum.mydomain.com, 2. mydomain.com
Zone file forum.mydomain.com record:
$ORIGIN forum.mydomain.com. $TTL 1800 forum.mydomain.com. IN SOA ns1.digitalocean.com. hostmaster.forum.mydomain.com. 1470862410 10800 3600 604800 1800 forum.mydomain.com. 1800 IN NS ns1.digitalocean.com. forum.mydomain.com. 1800 IN NS ns2.digitalocean.com. forum.mydomain.com. 1800 IN NS ns3.digitalocean.com. forum.mydomain.com. 1800 IN A *IP droplet* forum.mydomain.com.forum.mydomain.com. 1800 IN A *IP droplet* www.forum.mydomain.com. 1800 IN CNAME forum.mydomain.com.
Zone file mydomain.com record:
$ORIGIN mydomain.com. $TTL 1800 mydomain.com. IN SOA ns1.digitalocean.com. hostmaster.mydomain.com. 1470862340 10800 3600 604800 1800 mydomain.com. 1800 IN NS ns1.digitalocean.com. mydomain.com. 1800 IN NS ns2.digitalocean.com. mydomain.com. 1800 IN NS ns3.digitalocean.com. mydomain.com.mydomain.com. 1800 IN A *IP droplet* www.mydomain.com. 1800 IN CNAME mydomain.com. mydomain.com. 1800 IN A *IP droplet*
-
Can anyone Help? It still is not set up correctly.
-
First of all change the server_name for forum.mydomain.com to forum.mydomain.com and restart the nginx. Second of all please show the configuration of default and 22222 so that we can find out which is the proper config for mydomain.com.
-
@Peter-Zoltan-Keresztes Thank you. Allright, here we go:
cd /etc/nginx/sites-enabled
ls
22222 default forum.mydomain.com testnano 22222
Pastebin.com - Not Found (#404)
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Pastebin (pastebin.com)
nano default
Pastebin.com - Not Found (#404)
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Pastebin (pastebin.com)
nano forum.mydomain.com
Pastebin.com - Not Found (#404)
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Pastebin (pastebin.com)
I just dont get how nginx works. Im gonna try and read some more info on nginx.
Edit: just noticated theres a slight typo on the last paste. it says yserver, i fixed that now.
And just to be clear, I have my forum running on forum.mydomain.com. However mydomain.com now displays a welcome to nginx message, while previously it was a wp site.Edit2: now removed default and now both mydomain.com, as well as forum.mydomain.com go to nodebb forum.
-
Can you post your
nginx.conf
too? -
Hi @yariplus
Here it is:
Pastebin.com - Not Found (#404)
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Pastebin (pastebin.com)
Also noticed registration and login is a little slow.
-
Is there anything in the
conf.d
directory?Does your machine have 4 CPU cores?
-
@yariplus Yes, there is:
ls conf.d
blockips.conf fastcgi.conf upstream.conf
nano blockips.conf
http://pastebin.com/nhjzwu4Vnano fastcgi.conf
http://pastebin.com/jjJRhcsinano upstream.conf
http://pastebin.com/z7uViA7r--
I have an ubuntu 16.04 droplet on digital ocean. 512 MB Memory / 20 GB Disk / AMS2 - Ubuntu 16.04.1 x64
-
Well, your
worker_connections
is way too high, according to the nginx docs, it should be1024
or less. That might possibly be causing connection issues.I can't find anything that might be causing the problem though.