You are not logged in.
Pages: 1
I am trying to set up a subdomain on my nginx server.
I have 2 config files called from /etc/nginx/nginx.conf: /etc/nginx/conf/hosts/main.conf and .../conf/hosts/es.conf
The main.conf is for my default site. I have been using it for a while and it works.
Here are its basic contents:
server {
listen 80;
server_name domain.com
location / {
root /srv/http;
index index.html index.htm;
}
and es.conf:
server {
listen 80;
server_name es.doamin.com;
location / {
root /srv/earthstar_http;
index index.html index.htm;
autoindex on;
}
}
There are no errors give when I sudo systemctl restart nginx, and sudo nginx -t does not show anything. I set up the subdomain in my dynamic DNS service as a A-type DNS host. I can go to domain.com and www.domain.com fine and it works, but when I go to es.domain.com in my browser, the browser can't connect. I can ping es.domain.com just fine.
Offline
Yeah it seems your es.conf simply isn't included in your nginx.conf
Offline
Pages: 1