Domain/Wordpress setup
I completely new to Linode and Linux. Just been trying out hosting a Wordpress site using a domain. I've gone quite a few documentation pages but I'm stuck with something.
I've registered my domain (
Any help will be appreciated.
I've been following these docs:
12 Replies
Any ideas how do I point nginx to my public_html folder rather than this static HTML file? I want the domain to point to the Wordpress folder.
location / {
root /srv/www/findmill.co.uk/public_html;
index index.html index.htm;
}
Do I need to delete the index.html file from where this welcome message is coming?
Read somewhere that you should put root outside of location block. Don't know if it is just best practice.
Newbie myself, site went live on my LEMP 2 weeks ago.
server {
listen 80;
server_name
access_log /srv/www/findmill.co.uk/logs/access.log;
error_log /srv/www/findmill.co.uk/logs/error.log;
location / {
root /srv/www/findmill.co.uk/public_html;
index index.html index.htm;
}
location ~ .php$ {
include /etc/nginx/fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgiparam SCRIPTFILENAME /srv/www/findmill.co.uk/publichtml$fastcgiscript_name;
}
}
And here's my nginx.conf: The only change I've made to it is this added this line: include /etc/nginx/sites-enabled/*;
user www-data;
worker_processes 4;
pid /var/run/nginx.pid;
events {
worker_connections 768;
multi_accept on;
}
http {
#
Basic Settings
#
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
typeshashmax_size 2048;
server_tokens off;
servernameshashbucketsize 64;
servernamein_redirect off;
include /etc/nginx/sites-enabled/*;
include /etc/nginx/mime.types;
default_type application/octet-stream;
#
Logging Settings
#
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
#
Gzip Settings
#
gzip on;
gzip_disable "msie6";
gzip_vary on;
gzip_proxied any;
gzipcomplevel 6;
gzip_buffers 16 8k;
gziphttpversion 1.1;
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
#
Virtual Host Configs
#
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}
mail {
# See sample authentication script at:
# http://wiki.nginx.org/ImapAuthenticateW … ePhpScript">http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
#
# auth_http localhost/auth.php;
# pop3_capabilities "TOP" "USER";
# imap_capabilities "IMAP4rev1" "UIDPLUS";
#
server {
listen localhost:110;
protocol pop3;
proxy on;
}
#