我正在尝试在我的服务器openspeedtest.com self-hosted app上设置此应用程序 他们提供了Nginx配置。我怎样才能在我的apache共享托管服务器上完成这项工作?
fastcgi_read_timeout 360;
client_max_body_size 2000M;
location / {
if ($http_origin) {
add_header 'Access-Control-Allow-Origin' 'http://openspeedtest.com';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
}
if ($request_method = OPTIONS ) {
add_header Access-Control-Allow-Credentials "true";
add_header 'Access-Control-Allow-Headers' 'Accept,Authorization,Cache-Control,Content-Type,DNT,If-Modified-Since,Keep-Alive,Origin,User-Agent,X-Mx-ReqToken,X-Requested-With';
add_header Access-Control-Allow-Origin "http://openspeedtest.com";
add_header Access-Control-Allow-Methods "GET, POST, OPTIONS";
return 204;
}
}