Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Cossin Sebastien
ehden-bordeaux-atlas
Commits
86374ae2
Commit
86374ae2
authored
Jan 03, 2021
by
cossins
Browse files
add nginx configuration and password example .htpasswd
parent
3c254984
Changes
2
Hide whitespace changes
Inline
Side-by-side
conf.d/.htpasswd
0 → 100644
View file @
86374ae2
eds:$apr1$v90Sslyk$AacEt6A1j4f35NU8t49HQ/
\ No newline at end of file
conf.d/default.conf
0 → 100644
View file @
86374ae2
server
{
listen
80
;
listen
[::]:
80
;
server_name
localhost
;
#charset koi8-r;
#access_log /var/log/nginx/host.access.log main;
location
/ {
auth_basic
"Atlas CHU de Bordeaux"
;
auth_basic_user_file
/
etc
/
nginx
/
conf
.
d
/.
htpasswd
;
root
/
usr
/
share
/
nginx
/
html
;
index
index
.
html
index
.
htm
;
}
location
/
WebAPI
{
proxy_set_header
Accept
-
Encoding
""
;
proxy_pass
http
://
webapitomcat
:
8080
;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page
500
502
503
504
/
50
x
.
html
;
location
= /
50
x
.
html
{
root
/
usr
/
share
/
nginx
/
html
;
}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
#location ~ \.php$ {
# root html;
# fastcgi_pass 127.0.0.1:9000;
# fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
# include fastcgi_params;
#}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment