Here is my sites-available file:
server{
listen 127.0.0.1:8080;
server_name www.idi-welding.com *.idi-welding.com;
rewrite ^/(.*) http://idi-welding.com/$1 permanent;
}
server {
listen 8080;
server_name idi-welding.com;
location / {
try_files $uri $uri/ /index.html;
root /home/tj/html/;
index index.html;
}
## location /html/ {
## alias /home/tj/html/;
## autoindex on;
## }
}
server{
listen 127.0.0.1:8080;
server_name www.idi-welding.com *.idi-welding.com;
rewrite ^/(.*) http://idi-welding.com/$1 permanent;
}
server {
listen 8080;
server_name idi-welding.com;
location / {
try_files $uri $uri/ /index.html;
root /home/tj/html/;
index index.html;
}
## location /html/ {
## alias /home/tj/html/;
## autoindex on;
## }
}