Jump to content

modpagespeed and weird gallery urls


Recommended Posts

Posted

gallery urls show up as 

https://site.com/:///gallery/image/39-20190729_185629jpg/?context=widget

and some of them can't be viewd when i turn modpagespeed on.

Otherwise it's fine

server {
    listen 80;
    listen [::]:80;
#    pagespeed off;
    error_log /dev/null;
    server_name www.site.com site.com;
    rewrite ^ https://site.com$request_uri? permanent;
}
server {
    listen 443;
    listen [::]:443 ssl http2;
#    pagespeed off;
    error_log /dev/null;
    include /usr/local/nginx/conf/openssl.conf;
    server_name www.site.com;
    rewrite ^ https://site.com$request_uri? permanent;
}
server {
    listen 443 ssl http2;
    listen [::]:443 ssl http2;
#    pagespeed off;
    error_log /dev/null;
    server_name site.com;
    include /usr/local/nginx/conf/openssl.conf;
    root /home/site/public_html;
    set $no_cache 0;
    index index.php;
    location / {
        try_files $uri $uri/ /index.php;
        expires 7d;
    }
    include /usr/local/nginx/conf/wordpress.conf;
    include /usr/local/nginx/apps/pagespeed/optimize.conf;
    include /usr/local/nginx/conf/cache.conf;
    location ~ .php$ {
        include /usr/local/nginx/conf/php.conf;
        include /usr/local/nginx/conf/fastcgi_params;
    }
    location ~^(/page/).*(\.php)$ {
        try_files  $uri $uri/ /index.php;
    }

    location ~ ^/applications/(blog|calendar|chat|cms|core|downloads|forums|gallery|nexus|pastebin|companydirectory|rules|videos|notes|iawards|links|pmviewer|readthattopic|rules)/interface/.*\.(?:php\d*|phtml)$ {
        allow all;
        include /usr/local/nginx/conf/php.conf;
    }

    location ~ ^/(uploads|datastore|system|plugins)/.*\.(?:php\d*|phtml)$ {
        allow 127.0.0.1;
        deny all;
    }

    location ~ ^/applications/(blog|calendar|chat|cms|core|downloads|forums|gallery|nexus|pastebin|companydirectory|rules|videos|notes|iawards|links|pmviewer|readthattopic|rules)/.*\.(?:php\d*|phtml)$ {
        allow 127.0.0.1;
        deny all;
    }
    location /mail {
        proxy_set_header   X-Forwarded-For $remote_addr;
        proxy_set_header   Host $http_host;
        proxy_pass         http://xxx.xx.xx.xxx:8890;
    }
}

 

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...