Site web des serveurs MineTest Juneland
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

47 lines
1.0 KiB

server {
listen 80;
listen [::]:80;
root /home/donnees/projets/monnaie-libre/juneland/Juneland-website;
server_name juneland;
location ~ /thumbs/([0-9]+)w/(.*\.(jpg|jpeg|png)) {
try_files $uri /thumb.php?filename=$2&thumbWidth=$1;
}
location / {
rewrite ^/gbanque/?$ /guide/monnaie-argent-minetest redirect;
rewrite ^/gbank/?$ /guide/monnaie-argent-minetest redirect;
rewrite ^/guide/?$ /guide.php;
rewrite ^/guide/(.*)/?$ /guide/$1.php;
rewrite ^/soutenir/?$ /contribuer redirect;
rewrite ^/developper/?$ /contribuer redirect;
rewrite ^/contribuer/?$ /contribuer.php;
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ =404;
}
index index.php index.html;
# pass PHP scripts to FastCGI server
location ~ \.php$ {
include snippets/fastcgi-php.conf;
# With php-fpm (or other unix sockets):
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
# With php-cgi (or other tcp sockets):
#fastcgi_pass 127.0.0.1:9000;
}
}