VirtueMart 1.1.x [ Old version - no longer supported ] > Security (https) / Performance / SEO/ SEF issues VM 1.1
SEF URLs & Nginx - first Virtuemart link fails
(1/1)
HashNotAdam:
Hi, I am hosting a site for a client that is running:
* Joomla 1.5.24
* VirtueMart 1.1.9I have just moved it to a new server using:
* Ubuntu 10.04
* Nginx 1.0.12
* FastCGI
* PHP 5.3.2
Since moving, the first time you click a VirtueMart category link, you are redirected to /index.php?q=[URL you should be at]&vmcchk=1&option=com_virtuemart&Itemid=1
Not only is this a poor looking URL but it also doesn't show the content that is associated with the link that was pressed.
The site is http://www.writeboards.com.au/ and the products are in the left-hand side navigation.
The annoying thing is that it happens only once so I have to keep opening new Chrome Incognito windows to reproduce the error.
The nginx configuration is pretty straight-forward:
--- Code: ---server {
listen 80;
server_name www.writeboards.com.au;
index index.php index.html;
root /var/www/writeboards/www/htdocs;
access_log /var/www/writeboards/www/logs/access.log;
error_log /var/www/writeboards/www/logs/error.log;
proxy_redirect off;
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_set_header X-Forwarded-Host $host;
proxy_connect_timeout 120;
proxy_send_timeout 120;
proxy_read_timeout 240;
proxy_buffer_size 32k;
proxy_buffers 4 32k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 64k;
location ~* \.(engine|inc|ss|info|install|module|profile|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)$|^(code-style\.pl|Entries.*|Repository|Root|Tag|Template)$ {
deny all;
}
location / {
try_files $uri $uri/ /index.php?q=$request_uri;
}
location ~* \.php {
error_page 404 = @passthrough_nolimit;
return 404;
}
location @passthrough {
error_page 403 = @passthrough_nolimit;
error_page 404 = @passthrough_limit;
if ($remote_addr = '<address that has no limit, eg, your address>') { return 403; }
return 404;
}
location @passthrough_limit {
limit_req zone=default burst=10;
include fastcgi_params;
fastcgi_pass unix:/tmp/php.socket;
break;
}
location @passthrough_nolimit {
include fastcgi_params;
fastcgi_pass unix:/tmp/php.socket;
break;
}
location ~* /(images|cache|media|logs|tmp)/.*\.(php|pl|py|jsp|asp|sh|cgi)$ {
return 403;
error_page 403 /403_error.html;
}
location ~* ^.+\.(jpg|jpeg|gif|png|css|zip|pdf|txt|js|flv|swf|html|htm)$ {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
}
}
--- End code ---
HashNotAdam:
SOLUTION
To anyone else who gets this issue, unchecking "Enable the Cookie Check?" in the VirtueMart configuration fixed this issue.
While I don't know the underlining issue, having this enabled was causing a "303 See other" which in turn loaded an incorrect page.
szbstvn:
My problem is same
Yes I have menu item to virtuemart
SEF is on
Navigation
[0] Message Index
Go to full version