Modification nginx.conf
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
61bef5ed85
commit
3763a2b39c
@ -1,26 +1,9 @@
|
||||
# Directive globale
|
||||
worker_processes 1;
|
||||
server {
|
||||
listen 80;
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
http {
|
||||
include mime.types;
|
||||
default_type application/octet-stream;
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
|
||||
location /containers/kyllianchabanon-portfolio/ {
|
||||
root /usr/share/nginx/html; # Assure-toi que ce répertoire contient index.html
|
||||
try_files $uri $uri/ /containers/kyllianchabanon-portfolio/index.html; # Redirige vers index.html dans le sous-dossier
|
||||
}
|
||||
|
||||
location ~* \.(css|js|json|jpg|jpeg|png|gif|ico)$ {
|
||||
root /usr/share/nginx/html;
|
||||
try_files $uri =404; # Sert les fichiers statiques correctement
|
||||
}
|
||||
location /containers/kyllianchabanon-portfolio {
|
||||
alias /usr/share/nginx/html;
|
||||
try_files $uri $uri/ /containers/kyllianchabanon-portfolio/index.html;
|
||||
index index.html;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in new issue