Skip to content
Snippets Groups Projects

create a poc for hosting eclipse.org with hugo

Merged Christopher Guindon requested to merge cguindon/main/poc-nginx into main
2 unresolved threads
Files
16
+ 65
0
 
server {
 
listen 8080;
 
server_name localhost;
 
port_in_redirect off;
 
 
# access_log /var/log/nginx/host.access.log main;
 
 
# client_max_body_size 16m;
 
# client_body_buffer_size 128k;
 
 
# proxy buffering configuration
 
# https://stackoverflow.com/a/27551259/8538422
 
# proxy_buffer_size 128k;
 
# proxy_buffers 4 256k;
 
# proxy_busy_buffers_size 256k;
 
 
# location /css {
 
# alias /usr/share/nginx/html/css;
 
# }
 
 
# location /fonts {
 
# alias /usr/share/nginx/html/fonts;
 
# }
 
 
# location /home {
 
# alias /usr/share/nginx/html/home;
 
# }
 
 
# location /images {
 
# alias /usr/share/nginx/html/images;
 
# }
 
 
# location /js {
 
# alias /usr/share/nginx/html/js;
 
# }
 
 
# location /sitemap.xml {
 
# alias /usr/share/nginx/html/sitemap.xml;
 
# }
 
 
# location /robots.txt {
 
# alias /usr/share/nginx/html/robots.txt;
 
# }
 
 
error_page 404 /404.html;
 
 
location / {
 
include conf.d/default.redirects;
 
root /usr/share/nginx/html/;
 
index index.html index.htm;
 
}
 
 
# redirect server error pages to the static page /50x.html
 
error_page 500 502 503 504 /50x.html;
 
location = /50x.html {
 
root /usr/share/nginx/html;
 
}
 
 
# deny access to .htaccess files, if Apache's document root
 
# concurs with nginx's one
 
#
 
#location ~ /\.ht {
 
# deny all;
 
#}
 
}
 
\ No newline at end of file
Loading