Question
Unable to get Wordpress Site running in nginx server
Hello,
I have a 512 MB basic package droplet. I am running Ubuntu 14.04 and LEMP stack.
I am trying to host multiple wordpress site in a single droplet.
I have uploaded my wordpress files to " /var/www/domain.com/html" and configured the nginx block following this tutorial: https://www.digitalocean.com/community/articles/how-to-set-up-nginx-server-blocks-virtual-hosts-on-ubuntu-14-04-lts
My /etc/nginx/sites-available/domain.com block looks like the following:
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
root /var/www/domain.com/html;
index index.php index.html index.htm;
server_name 128.199.247.111;
location / {
try_files $uri $uri/ =404;
}
}
But when I try to access the site: http://128.199.247.111 , it gets "could not connect to 128.199.247.111" error.
Any Suggestions.
Add a comment
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×