Joelkuehle

default.conf

May 17th, 2024
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.30 KB | None | 0 0
  1. server {
  2.     listen 9090 ssl http2;
  3.     server_name __;
  4.     # resolver is the internal docker DNS resolver
  5.     resolver 127.0.0.11 valid=15s;
  6.  
  7.     access_log off;
  8.     open_file_cache off;
  9.  
  10.     location  ~ \.php$ {
  11.         gzip off;
  12.  
  13.         fastcgi_param  REQUEST_URI        $request_uri;
  14.         fastcgi_param  DOCUMENT_ROOT      /var/www/html;
  15.         fastcgi_param  GATEWAY_INTERFACE  CGI/1.1;
  16.         fastcgi_param  REQUEST_METHOD     $request_method;
  17.         fastcgi_param  QUERY_STRING       $query_string;
  18.         fastcgi_param  SCRIPT_FILENAME    /var/www/html$fastcgi_script_name;
  19.         fastcgi_param  HTTPS              $https if_not_empty;
  20.         fastcgi_param  CONTENT_LENGTH     $content_length;
  21.         fastcgi_param  REMOTE_ADDR        $remote_addr;
  22.         fastcgi_param  REMOTE_PORT        $remote_port;
  23.         fastcgi_param  SERVER_ADDR        $server_addr;
  24.         fastcgi_param  SERVER_PORT        $server_port;
  25.         fastcgi_param  SERVER_NAME        $server_name;
  26.  
  27.         fastcgi_cache   off;
  28.         fastcgi_index /var/www/html/index.php;
  29.  
  30.         fastcgi_pass PHPMyAdmin:9000;
  31.     }
  32.  
  33.     location ~ \.(jpg|jpeg|png|gif|js|ico|css|html|htm|xml|svg|ttf)$ {
  34.         root /var/www/html;
  35.         index index.php;
  36.         try_files  $uri $uri/ /index.php?$args;
  37.     }
  38.  
  39. }
Advertisement
Add Comment
Please, Sign In to add comment