I have this in sites-available for the subdomain (there are two others, https://www.webshooter.se and http://www.webshooter.se):
## For support.webshooter.se subdomain
server {
listen 80;
listen [::]:80;
server_name support.webshooter.se;
root /var/www/support.webshooter.se;
index index.html index.php;
}
and it's linked to sites-enabled.
Have put this in the /etc/hosts file:
127.0.1.1 support.webshooter.se
When I ping locally:
[email protected]:/etc# ping support.webshooter.se
PING support.webshooter.se (127.0.1.1) 56(84) bytes of data.
64 bytes from ws02 (127.0.1.1): icmp_seq=1 ttl=64 time=0.051 ms
64 bytes from ws02 (127.0.1.1): icmp_seq=2 ttl=64 time=0.051 ms
But "Server not found" in browser. http://support.webshooter.se
What do I miss?
## For support.webshooter.se subdomain
server {
listen 80;
listen [::]:80;
server_name support.webshooter.se;
root /var/www/support.webshooter.se;
index index.html index.php;
}
and it's linked to sites-enabled.
Have put this in the /etc/hosts file:
127.0.1.1 support.webshooter.se
When I ping locally:
[email protected]:/etc# ping support.webshooter.se
PING support.webshooter.se (127.0.1.1) 56(84) bytes of data.
64 bytes from ws02 (127.0.1.1): icmp_seq=1 ttl=64 time=0.051 ms
64 bytes from ws02 (127.0.1.1): icmp_seq=2 ttl=64 time=0.051 ms
But "Server not found" in browser. http://support.webshooter.se
What do I miss?