NGINX AddHandler等价物?

NGINX AddHandler等价物?,nginx,Nginx,有人知道我会在NGINX中做些什么来实现这一点吗 AddHandler应用程序/x-httpd-php.ws 如果您的conf看起来像: location ~ \.php { fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_pass 127.0.0.1:9001; } location ~ \.(php|

有人知道我会在NGINX中做些什么来实现这一点吗

AddHandler应用程序/x-httpd-php.ws


如果您的conf看起来像:

    location ~ \.php {
            fastcgi_param   SCRIPT_FILENAME  $document_root$fastcgi_script_name;  
            fastcgi_pass    127.0.0.1:9001;  
    }
    location ~ \.(php|ws) {
            fastcgi_param   SCRIPT_FILENAME  $document_root$fastcgi_script_name;  
            fastcgi_pass    127.0.0.1:9001;  
    }
然后你会这样做:


如果您的配置文件看起来像:

    location ~ \.php {
            fastcgi_param   SCRIPT_FILENAME  $document_root$fastcgi_script_name;  
            fastcgi_pass    127.0.0.1:9001;  
    }
    location ~ \.(php|ws) {
            fastcgi_param   SCRIPT_FILENAME  $document_root$fastcgi_script_name;  
            fastcgi_pass    127.0.0.1:9001;  
    }
不是从php到(php | ws)的更改