Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- server_name openw3.com www.openw3.com;
- listen 23.239.29.5;
- listen [2600:3c00::f03c:91ff:fe08:149b];
- root /home/openw3/public_html;
- index index.html index.htm index.php;
- access_log /var/log/virtualmin/openw3.com_access_log;
- error_log /var/log/virtualmin/openw3.com_error_log;
- fastcgi_param GATEWAY_INTERFACE CGI/1.1;
- fastcgi_param SERVER_SOFTWARE nginx;
- fastcgi_param QUERY_STRING $query_string;
- fastcgi_param REQUEST_METHOD $request_method;
- fastcgi_param CONTENT_TYPE $content_type;
- fastcgi_param CONTENT_LENGTH $content_length;
- fastcgi_param SCRIPT_FILENAME /home/openw3/public_html$fastcgi_script_name;
- fastcgi_param SCRIPT_NAME $fastcgi_script_name;
- fastcgi_param REQUEST_URI $request_uri;
- fastcgi_param DOCUMENT_URI $document_uri;
- fastcgi_param DOCUMENT_ROOT /home/openw3/public_html;
- fastcgi_param SERVER_PROTOCOL $server_protocol;
- fastcgi_param REMOTE_ADDR $remote_addr;
- fastcgi_param REMOTE_PORT $remote_port;
- fastcgi_param SERVER_ADDR $server_addr;
- fastcgi_param SERVER_PORT $server_port;
- fastcgi_param SERVER_NAME $server_name;
- fastcgi_param HTTPS $https;
- location ~ \.php$ {
- try_files $uri =404;
- fastcgi_pass unix:/var/php-nginx/145599871331844.sock/socket;
- }
- listen 23.239.29.5:443 ssl;
- ssl_certificate /home/openw3/ssl.cert;
- ssl_certificate_key /home/openw3/ssl.key;
- index index.php index.cgi index.pl index.html index.xhtml index.htm index.shtml;
- try_files $uri $uri/ /index.php?$args;
- listen [::];
- fastcgi_read_timeout 360;
- client_max_body_size 2000M;
- server_tokens off;
- location ~* \.(jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js)$ {
- expires 365d;
- }
- 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;
- }
- }
- ssl off;
- }
Add Comment
Please, Sign In to add comment