Skip to content

Instantly share code, notes, and snippets.

@eftakhairul
Created September 11, 2012 19:12
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eftakhairul/3701091 to your computer and use it in GitHub Desktop.
Save eftakhairul/3701091 to your computer and use it in GitHub Desktop.
Nginx Default Configuration in located /etc/nginx/conf.d/default.conf
#
# The default server
#
server {
listen 80;
server_name _;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
root /usr/share/nginx/html;
index index.php index.html index.htm;
}
error_page 404 /404.html;
location = /404.html {
root /usr/share/nginx/html;
}
# redirect server error pages to the static page /50x.html
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment