###############################################################################  
#                        Ultra Web Server                                        
# File name: nginx.conf                                                          
# UWS Build this file every time Start or Test Nginx Web Server                  
# This file Generated at 2024-04-27 05:59:15 AM
###############################################################################  
                                                                                 
worker_processes  1;                                                             
                                                                                 
events {                                                                         
    worker_connections  1024;                                                    
}                                                                                
                                                                                 
http {                                                                           
    include       mime.types;                                                    
    default_type  application/octet-stream;                                      
    sendfile        on;                                                          
    keepalive_timeout  6500;                                                     
                                                                                 
   server {                                                                      
        listen       80;                                           
        listen       [::]:80;                                      
        server_name  localhost;                                     
        root   D:/UltraWebServer/www;                                                         
        client_max_body_size 100M;                                               
                                                                                 
        location / {                                                             
            index  index.php index.html index.htm;                               
        }                                                                        
                                                                                 
        error_page   500 502 503 504  /50x.html;                                 
        location = /50x.html {                                                   
        root   D:/UltraWebServer/www;                                                         
        }                                                                        
                                                                                 
        #=== WWW Root===============================================             
        location ~ \.php$ {                                                      
            try_files      $uri =404;                                            
            include        fastcgi_params;                                       
            fastcgi_pass   127.0.0.1:9123;                            
            fastcgi_index  index.php;                                            
            fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;  
            fastcgi_param  DOCUMENT_ROOT  D:/UltraWebServer/www;                              
        }                                                                        
                                                                                 
        #=== phpMyAdmin ============================================             
        location /us_opt1/ {                                                     
            alias D:/UltraWebServer/home/us_opt1/;                                
            index  index.php index.html index.htm;                               
            location ~* "\.php$" {                                               
            try_files      $uri =404;                                            
            include        fastcgi_params;                                       
            fastcgi_pass   127.0.0.1:9123;                            
            fastcgi_param  SCRIPT_FILENAME  $request_filename;                   
            fastcgi_param  DOCUMENT_ROOT  D:/UltraWebServer/www;                              
            }                                                                    
        }                                                                        
                                                                                 
        #=== Adminer ==============================================              
        location /us_opt2/ {                                                     
            alias D:/UltraWebServer/home/us_opt2/;                                
            index  index.php index.html index.htm;                               
            location ~* "\.php$" {                                               
            try_files      $uri =404;                                            
            include        fastcgi_params;                                       
            fastcgi_pass   127.0.0.1:9123;                            
            fastcgi_param  SCRIPT_FILENAME  $request_filename;                   
            fastcgi_param  DOCUMENT_ROOT  D:/UltraWebServer/www;                              
            }                                                                    
        }                                                                        
                                                                                 
        #=== SIDU ==================================================             
        location /us_opt3/ {                                                     
            alias D:/UltraWebServer/home/us_opt3/;                                
            index  index.php index.html index.htm;                               
            location ~* "\.php$" {                                               
            try_files      $uri =404;                                            
            include        fastcgi_params;                                       
            fastcgi_pass   127.0.0.1:9123;                            
            fastcgi_param  SCRIPT_FILENAME  $request_filename;                   
            fastcgi_param  DOCUMENT_ROOT  D:/UltraWebServer/www;                              
            }                                                                    
        }                                                                        
                                                                                 
        #=== phpSysInfo ============================================             
        location /us_opt4/ {                                                     
            alias D:/UltraWebServer/home/us_opt4/;                                
            index  index.php index.html index.htm;                               
            location ~* "\.php$" {                                               
            try_files      $uri =404;                                            
            include        fastcgi_params;                                       
            fastcgi_pass   127.0.0.1:9123;                            
            fastcgi_param  SCRIPT_FILENAME  $request_filename;                   
            fastcgi_param  DOCUMENT_ROOT  D:/UltraWebServer/www;                              
            }                                                                    
        }                                                                        
                                                                                 
        #=== phpFileManager ========================================             
        location /us_opt5/ {                                                     
            alias D:/UltraWebServer/home/us_opt5/;                                
            index  index.php index.html index.htm;                               
            location ~* "\.php$" {                                               
            try_files      $uri =404;                                            
            include        fastcgi_params;                                       
            fastcgi_pass   127.0.0.1:9123;                            
            fastcgi_param  SCRIPT_FILENAME  $request_filename;                   
            fastcgi_param  DOCUMENT_ROOT  D:/UltraWebServer/www;                              
            }                                                                    
        }                                                                        
                                                                                 
        #=== phpPgAdmin ========================================                 
        location /us_opt6/ {                                                     
            alias D:/UltraWebServer/home/us_opt6/;                                
            index  index.php index.html index.htm;                               
            location ~* "\.php$" {                                               
            try_files      $uri =404;                                            
            include        fastcgi_params;                                       
            fastcgi_pass   127.0.0.1:9123;                            
            fastcgi_param  SCRIPT_FILENAME  $request_filename;                   
            fastcgi_param  DOCUMENT_ROOT  D:/UltraWebServer/www;                              
            }                                                                    
        }                                                                        
                                                                                 
        #=== pear ==================================================             
        location /us_pear/ {                                                     
            alias D:/UltraWebServer/home/us_pear/;                                
            index  index.php index.html index.htm;                               
            location ~* "\.php$" {                                               
            try_files      $uri =404;                                            
            include        fastcgi_params;                                       
            fastcgi_pass   127.0.0.1:9123;                            
            fastcgi_param  SCRIPT_FILENAME  $request_filename;                   
            fastcgi_param  DOCUMENT_ROOT  D:/UltraWebServer/www;                              
            }                                                                    
        }                                                                        
                                                                                 
        #=== splash ================================================             
        location /us_splash/ {                                                   
            alias D:/UltraWebServer/home/us_splash/;                              
            index  index.php index.html index.htm;                               
            location ~* "\.php$" {                                               
            try_files      $uri =404;                                            
            include        fastcgi_params;                                       
            fastcgi_pass   127.0.0.1:9123;                            
            fastcgi_param  SCRIPT_FILENAME  $request_filename;                   
            fastcgi_param  DOCUMENT_ROOT  D:/UltraWebServer/www;                              
            }                                                                    
        }                                                                        
                                                                                 
        #=== us_extra (PHPinf etc) =================================             
        location /us_extra/ {                                                    
            alias D:/UltraWebServer/home/us_extra/;                               
            index  index.php index.html index.htm;                               
            location ~* "\.php$" {                                               
            try_files      $uri =404;                                            
            include        fastcgi_params;                                       
            fastcgi_pass   127.0.0.1:9123;                            
            fastcgi_param  SCRIPT_FILENAME  $request_filename;                   
            fastcgi_param  DOCUMENT_ROOT  D:/UltraWebServer/www;                              
            }                                                                    
        }                                                                        
                                                                                 
        #=== us_test_access ======================================               
        location /us_test_access/ {                                              
            alias D:/UltraWebServer/home/us_access/www/;                          
            index  index.php index.html index.htm;                               
            location ~* "\.php$" {                                               
            try_files      $uri =404;                                            
            include        fastcgi_params;                                       
            fastcgi_pass   127.0.0.1:9123;                            
            fastcgi_param  SCRIPT_FILENAME  $request_filename;                   
            fastcgi_param  DOCUMENT_ROOT  D:/UltraWebServer/www;                              
            }                                                                    
        }                                                                        
                                                                                 
        #=== cgi-bin ======================================                      
        location /cgi-bin/ {                                                     
            alias D:/UltraWebServer/cgi-bin/;                                     
            index  index.php index.html index.htm;                               
            location ~* "\.(cgi|pl|py|rb)$" {                                    
            try_files      $uri =404;                                            
            include        fastcgi_params;                                       
            fastcgi_pass   127.0.0.1:9123;                            
            fastcgi_param  SCRIPT_FILENAME  $request_filename;                   
            fastcgi_param  DOCUMENT_ROOT  D:/UltraWebServer/www;                              
            }                                                                    
        }                                                                        
                                                                                 
    }                                                                            
                                                                                 
}                                                                                
                                                                                 
