Invision Community 5: A video walkthrough creating a custom theme and homepage By Matt Thursday at 04:02 PM
Danny Michel Posted August 10, 2019 Posted August 10, 2019 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; } }
bfarber Posted August 12, 2019 Posted August 12, 2019 So when you enable the pagespeed module for Nginx (based on your config I'm assuming here), it breaks the URLs, but they work fine otherwise? You should probably get in touch with the developers of the pagespeed module about that issue: https://github.com/apache/incubator-pagespeed-ngx
Recommended Posts
Archived
This topic is now archived and is closed to further replies.