zzz Posted December 14, 2021 Share Posted December 14, 2021 Link to comment Share on other sites More sharing options...
Al Brookbanks Posted December 14, 2021 Share Posted December 14, 2021 This is because you have the nginx web server and not Apache. If possible change to Apache. Link to comment Share on other sites More sharing options...
zzz Posted December 14, 2021 Author Share Posted December 14, 2021 Can I only use Apache? Is it not compatible with nginx? Link to comment Share on other sites More sharing options...
Al Brookbanks Posted December 14, 2021 Share Posted December 14, 2021 That's right. Please see https://www.cubecart.com/hosting-requirements Link to comment Share on other sites More sharing options...
zzz Posted December 14, 2021 Author Share Posted December 14, 2021 OK, thank you Link to comment Share on other sites More sharing options...
bsmither Posted December 14, 2021 Share Posted December 14, 2021 CubeCart can run under any web server that can accomplish URL Rewriting (but is only "supported" with Apache). CC5 has as optional the "friendly" URL feature, but CC6 made it required. NGINX does not use the .htaccess file that Cubecart will create if not already present and containing the required rewriting statements. The following are the relevant statements in the server-block file for the site: location = /favicon.ico { access_log off; log_not_found off; try_files $uri =204; } location = /robots.txt { access_log off; log_not_found off; try_files $uri =204; } location ~* \.(gif|jpe?g|png|ico|css|js|svg)$ { log_not_found off; try_files $uri =204; } location / { try_files $uri @rewrite; } location @rewrite { rewrite ^\/(.*)? /index.php?seo_path=$1 last; } I haven't tried it, but this server-block file may have the ability to include a file located where CubeCart is installed, or NGINX could already know to look for a server-block file at the root path, thus making it easier to avoid getting into the restricted areas of the server computer. Link to comment Share on other sites More sharing options...
zzz Posted December 15, 2021 Author Share Posted December 15, 2021 I see. Thank you Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.