Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Re: Basic website configuration

$
0
0
Here is my sites-enabled 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;
## }
}

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>