Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted August 10, 20195 yr 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; } }
August 12, 20195 yr 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
Archived
This topic is now archived and is closed to further replies.