Pi3rrot.net

Yet another Wiki on the Interweb

Outils pour utilisateurs

Outils du site


cherry:templates_files

Ceci est une ancienne révision du document !


Templates Files

Nginx

Vhost classique

server {
        listen 80;
        listen [::]:80;
 
        server_name jeu-mgenkids.fr;
 
 
        location /.well-known {
            root /var/www/letsencrypt;
        }
}

Vhost phpMyadmin

server {
        listen 80;
        server_name mgen.octopuce.fr;
        return 301 https://$server_name$request_uri;
}
 
 
server {
 
    listen [::]:443 ssl;
    listen 443 ssl;
    ssl_certificate /etc/ssl/private/localhost.crt+chain;
    ssl_certificate_key /etc/ssl/private/localhost.key;
 
    server_name mgen.octopuce.fr;
 
    server_tokens off;
 
 
	location ^~ / {
 
	        root /var/www/;
 
	        index index.php index.html index.htm;
 
	        location ~ ^/phpmyadmin/(.+\.php)$ {
		                try_files $uri =404;
		                root /var/www/;
		                fastcgi_pass unix:/var/run/php/php7.3-fpm-pma.sock;
   	     	fastcgi_index index.php;
   	    	fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    	    include /etc/nginx/fastcgi_params;
	        }
 
 
 
	        location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
		                root /var/www/;
	        }
	}
 
	location /phpMyAdmin {
	        rewrite ^/* /phpmyadmin last;
	}
 
 
}
cherry/templates_files.1637763779.txt.gz · Dernière modification : 2022/03/24 22:29 (modification externe)