RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} /uploads/.*?\.(jpg|jpeg|png|gif)$
RewriteRule ^(.*)$ auto-thumbs.php [L]
header('Content-Type: image/x-png');
server {
listen 172.67.196.42:443;
server_name iherney.com www.iherney.com *.demo.iherney.com;
ssl on;
ssl_certificate /home/iherney/conf/web/ssl.iherney.com.pem;
ssl_certificate_key /home/iherney/conf/web/ssl.iherney.com.key;
error_log /var/log/apache2/domains/iherney.com.error.log error;
root /home/iherney/web/iherney.com/public_html;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass https://172.67.196.42:8443;
location ~* ^.+\.(jpg|jpeg|gif|png|ico|svg|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|odt|ods|odp|odf|tar|wav|bmp|rtf|js|mp3|avi|mpeg|flv|html|htm)$ {
root /home/iherney/web/iherney.com/public_html;
access_log /var/log/apache2/domains/iherney.com.log combined;
access_log /var/log/apache2/domains/iherney.com.bytes bytes;
expires max;
try_files $uri @fallback;
}
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location /error/ {
alias /home/iherney/web/iherney.com/document_errors/;
}
location @fallback {
proxy_pass https://172.67.196.42:8443;
}
location ~ /\.ht {return 404;}
location ~ /\.svn/ {return 404;}
location ~ /\.git/ {return 404;}
location ~ /\.hg/ {return 404;}
location ~ /\.bzr/ {return 404;}
include /home/iherney/conf/web/snginx.iherney.com.conf*;
}
iface eth0 inet6 auto
address 2a04:ac00:4:294b::2
netmask 64
gateway 2a04:ac00:4:294b::1
up ip addr add 2a04:ac00:4:294b:237f:5fbf:7ff6:63fc/64 dev eth0
up ip addr add 2a04:ac00:4:294b:1ebc:09ba:a68c:4713/64 dev eth0
up ip addr add 2a04:ac00:4:294b:9732:5a7f:457b:cabb/64 dev eth0
up ip addr add 2a04:ac00:4:294b:1879:8d27:82d3:baeb/64 dev eth0
up ip addr add 2a04:ac00:4:294b:9174:ab79:6421:d697/64 dev eth0
service networking restart
tcpdump tcp port 443
en-01.mozartkids.com:443 138.246.253.24 - - [05/Dec/2020:07:53:47 -0500] "HEAD / HTTP/1.0" 400 4424 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.85 Safari/537.36"
$fo = fopen ($filename, 'r');
curl_setopt($this->_ch, CURLOPT_PUT, true);
curl_setopt($this->_ch, CURLOPT_INFILE, $fo);
curl_setopt($this->_ch, CURLOPT_INFILESIZE, filesize($filename));
$post_data = ["file" => curl_file_create($file_name)];
curl_setopt($this->_ch, CURLOPT_CUSTOMREQUEST, 'PUT');
curl_setopt($this->_ch, CURLOPT_POSTFIELDS, $post_data);
--------------------------5cff5c02b52f5c00
Content-Disposition: form-data; name="file"; filename="test.txt"
Content-Type: application/octet-stream
ВАШИ ДАННЫЕ
--------------------------5cff5c02b52f5c00--