Forum Replies Created

Viewing 15 replies - 1 through 15 (of 39 total)
  • Thread Starter blacklightsorane

    (@blacklightsorane)

    @wpenhanced
    Yes. Redirection to an external site or a direct link to a file exchanger.

    Thread Starter blacklightsorane

    (@blacklightsorane)

    @subratamal

    View post on imgur.com


    These switches have stopped switching in the new version of the plugin.
    After the page is refreshed, they remain enabled.

    Thread Starter blacklightsorane

    (@blacklightsorane)

    @mihdan
    1. После обновления обновили SEO-hide.
    1.1. После добавления ДОМЕНОВ в SEO-hide и ссылок в списки для маскировки работает только маскировка.
    1.2. Если убрать домены с SEO-hide перестает работать маскировка, но начинает работать перенаправление.

    Вопрос.
    Как сделать так чтобы работала и маскировка и перенаправление?

    *Использую JS перенаправление с таймером.

    2. В перенаправлении есть тег Яндекс метрики и условие, что если окно становится неактивно оно закрывается.
    2.1. В 4.7.3 все работает исправно.
    2.2. В 4.7.4 перестает работать мой добавленный код с условием и в Яндекс Вебвизоре нет информации о страницах с переадресацией, хотя посетителей куча и они явно переходят по таким ссылка.

    *Сделал откат до 4.7.3 заработал скрипт и (только что проверил) появились данные о пользователях на той странице.
    *Использую красивый таймер на JS чтобы показывать пользователям сколько осталось ждать перенаправления и он работает хоть на 4.7.3 и на 4.7.4.
    А мой тот код про который я описал работает на 4.7.3, но в 4.7.4 работать он не хочет.

    Постарался подробно описать проблему.

    Thread Starter blacklightsorane

    (@blacklightsorane)

    @mihdan
    Проблема была в php с 7.1 работать не хотел. Хостер назначил php 7.3 как модуль апачь для сайта и все заработало.

    Логи жаловались вообще на другое. На отсутствие какой-то таблицы.

    Forum: Plugins
    In reply to: [Autoptimize] Error 502
    Thread Starter blacklightsorane

    (@blacklightsorane)

    @optimizingmatters

    Oh, I’m sorry. The problem was on the hoster’s side. I mark the issue as resolved.

    Thread Starter blacklightsorane

    (@blacklightsorane)

    Thread Starter blacklightsorane

    (@blacklightsorane)

    @misulicus

    Here is the configuration file, Nginx was restarted, there was no redirection to the main page before it was restarted. Even the VDS was rebooted.
    IP and domain changed to avoid problems ??

    server {
    	server_name domen.ru www.domen.ru;
    	charset UTF-8;
    	index index.php index.html;
    	disable_symlinks if_not_owner from=$root_path;
    	include /etc/nginx/vhosts-includes/*.conf;
    	include /etc/nginx/vhosts-resources/domen.ru/*.conf;
    	access_log /var/www/httpd-logs/domen.ru.access.log;
    	error_log /var/www/httpd-logs/domen.ru.error.log notice;
    	ssi on;
    	set $root_path /var/www/blackwotrublitz/data/www/blackwotru;
    	root $root_path;
    	location / {
    		location ~ [^/]\.ph(p\d*|tml)$ {
    			try_files /does_not_exists @fallback;
    		}
    		location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar|swf)$ {
    			try_files $uri $uri/ @fallback;
    			expires 30d;
    		}
    		location / {
    			try_files /does_not_exists @fallback;
    		}
    	}
    	location @fallback {
    		proxy_pass https://127.0.0.1:8080;
    		proxy_redirect https://127.0.0.1:8080 /;
    		proxy_set_header Host $host;
    		proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    		proxy_set_header X-Forwarded-Proto $scheme;
    		proxy_set_header X-Forwarded-Port $server_port;
    		access_log off;
    		                proxy_buffer_size 64k;
                    proxy_buffers 4 64k;
                    proxy_busy_buffers_size 64k;
    
    	}
    	listen [here is the IP address of the server]:80;
    	gzip on;
    	gzip_comp_level 5;
    	gzip_disable "msie6";
    	gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript;
    	rewrite ^/wp-content/uploads/edd/(.*)\.zip$ / permanent;
    }
    server {
    	server_name domen.ru www.domen.ru;
    	ssl_certificate "/var/www/httpd-cert/blackwotrublitz/domen.ru.crt";
    	ssl_certificate_key "/var/www/httpd-cert/blackwotrublitz/domen.ru.key";
    	ssl_ciphers EECDH:+AES256:-3DES:RSA+AES:!NULL:!RC4;
    	ssl_prefer_server_ciphers on;
    	ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    	add_header Strict-Transport-Security "max-age=31536000;";
    	ssl_dhparam /etc/ssl/certs/dhparam4096.pem;
    	charset UTF-8;
    	index index.php index.html;
    	disable_symlinks if_not_owner from=$root_path;
    	include /etc/nginx/vhosts-includes/*.conf;
    	include /etc/nginx/vhosts-resources/domen.ru/*.conf;
    	access_log /var/www/httpd-logs/domen.ru.access.log;
    	error_log /var/www/httpd-logs/domen.ru.error.log notice;
    	ssi on;
    	set $root_path /var/www/blackwotrublitz/data/www/blackwotru;
    	root $root_path;
    	location / {
    		location ~ [^/]\.ph(p\d*|tml)$ {
    			try_files /does_not_exists @fallback;
    		}
    		location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar|swf)$ {
    			try_files $uri $uri/ @fallback;
    			expires 30d;
    		}
    		location / {
    			try_files /does_not_exists @fallback;
    		}
    	}
    	location @fallback {
    		proxy_pass https://127.0.0.1:8080;
    		proxy_redirect https://127.0.0.1:8080 /;
    		proxy_set_header Host $host;
    		proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    		proxy_set_header X-Forwarded-Proto $scheme;
    		proxy_set_header X-Forwarded-Port $server_port;
    		access_log off;
    		proxy_buffer_size 64k;
    		proxy_buffers 4 64k;
    		proxy_busy_buffers_size 64k;
    
    	}
    	listen [here is the IP address of the server]:443 ssl;
    	gzip on;
    	gzip_comp_level 5;
    	gzip_disable "msie6";
    	gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript;
    	rewrite ^/wp-content/uploads/edd/(.*)\.zip$ / permanent;
    }
    Thread Starter blacklightsorane

    (@blacklightsorane)

    @misulicus

    in nginx config added:
    rewrite ^/wp-content/uploads/edd/(.*)\.zip$ / permanent;

    Thread Starter blacklightsorane

    (@blacklightsorane)

    @misulicus

    I’ll try to ask…

    Thread Starter blacklightsorane

    (@blacklightsorane)

    @misulicus

    The hoster has completed the configuration for your guide as a technical task.
    The server runs on NGINX.
    The hoster added a rule according to your instructions and when you try to download a file from a direct link, the user redirects to the main page and this is great, but…
    When a user places an order and clicks on a long link from the plugin, it also redirects to the main page.
    Example:
    test/wp-admin/test/1.zip – redirects to the main page.
    test/index. php?add file=19973%3A19776%… – redirects to the main page.

    The plugin itself works fine, but it does not protect the folder from direct downloads, and when you try to configure it according to your instructions, this problem occurs.

    I use a translator, I hope I explained it clearly.

    Thread Starter blacklightsorane

    (@blacklightsorane)

    When to wait, approximately? ??

    Thread Starter blacklightsorane

    (@blacklightsorane)

    Yes, thanks, all the best.

    Thread Starter blacklightsorane

    (@blacklightsorane)

    It was necessary to increase the memory_limit parameter to allocate more memory for script processing.

    Thread Starter blacklightsorane

    (@blacklightsorane)

    Okay… But what should I do? How to fix the error with 70+ MB files?

    Thread Starter blacklightsorane

    (@blacklightsorane)

    Yes of course! Added file number 3.

    https://blackwot.ru/test-download/

    3 – (.zip ~28 MB)

Viewing 15 replies - 1 through 15 (of 39 total)