install on wp site
-
@absurdsmash said in install on wp site:
gital ocean networking s
First of all you don't have any records for forum.mydomain.com that's exactly the DNS error you see in your browser. For using this setting you will have to create a complete new virtualhost configuration.
Only adding as mydomain.com/forum you would need to add the configuration to the mydomain.com virtualhost settings.
-
@Peter-Zoltan-Keresztes said in install on wp site:
@absurdsmash said in install on wp site:
gital ocean networking s
First of all you don't have any records for forum.mydomain.com that's exactly the DNS error you see in your browser. For using this setting you will have to create a complete new virtualhost configuration.
Only adding as mydomain.com/forum you would need to add the configuration to the mydomain.com virtualhost settings.
In virtual host settings? You Mean add a new A record in digital ocean with mydomain.com? Sorry I dont really understand what exactly to add or edit
-
@absurdsmash By virtual host I mean your nginx configuration for a different domain/subdomain.
Basically you have an A record for mydomain.com but you missing the A record for forum.mydomain.com. Once that is done and is resolving correctly you will need to add another config file to /etc/nginx/conf.d or /etc/nginx/sites-enabled for forum.mydomain.com
-
@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
nano default
nano forum.mydomain.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? -
-
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.