Articles Comments

{ Berbagi, Menulis, Dan Mengajar } Ilmu… » 7. Operating System » Configurasi nginx.conf

Configurasi nginx.conf

/etc/nginx/sites-enabled/default

server {
	listen 80;
	server_name localhost;

	access_log  /var/log/nginx/localhost.access.log;

	location / {
		root   /drive3/Linux;
		index  index.html index.htm;
		autoindex on;
	}

	error_page   500 502 503 504  /50x.html;
	location = /50x.html {
		root   /var/www/nginx-default;
	}
}

server {
	listen 80;
	server_name bks-forum.b-metro.net;

	access_log  /var/log/nginx/localhost.access.log;

	location / {
		root /var/www/nginx-default;
		index  index.html index.htm;
		autoindex on;
	}

	error_page   500 502 503 504  /50x.html;
	location = /50x.html {
		root   /var/www/nginx-default;
	}
}

Filed under: 7. Operating System

Leave a Reply

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>