Wondering what is it that is causing why the page isn't loading properly
Guest Os is Ubuntu 20 with mysql 8.0
any help or direction is highly appreciated
thank you
M
Hi!
Obviously, page resources (css) are not loading. Open the developer tools (Ctrl+Shift+i) on the network tab and refresh the page. I think this is due to the fact that css resources refer to the domain name, and not to the ip address.
Obviously, page resources (css) are not loading. Open the developer tools (Ctrl+Shift+i) on the network tab and refresh the page. I think this is due to the fact that css resources refer to the domain name, and not to the ip address.
My extensions in marketplace. [ security | flexibility | speedup ]
i did the refresh . same issue. .. the /var/www/opencart/config.php is set with the ip address
Code: Select all
<?php
// HTTP
define('HTTP_SERVER', 'http://10.244.0.36/');
// HTTPS
define('HTTPS_SERVER', 'http://10.244.0.36/');
// DIR
define('DIR_APPLICATION', '/var/www/opencart/catalog/');
define('DIR_SYSTEM', '/var/www/opencart/system/');
define('DIR_IMAGE', '/var/www/opencart/image/');
define('DIR_STORAGE', DIR_SYSTEM . 'storage/');
define('DIR_LANGUAGE', DIR_APPLICATION . 'language/');
define('DIR_TEMPLATE', DIR_APPLICATION . 'view/theme/');
define('DIR_CONFIG', DIR_SYSTEM . 'config/');
define('DIR_CACHE', DIR_STORAGE . 'cache/');
define('DIR_DOWNLOAD', DIR_STORAGE . 'download/');
define('DIR_LOGS', DIR_STORAGE . 'logs/');
define('DIR_MODIFICATION', DIR_STORAGE . 'modification/');
define('DIR_SESSION', DIR_STORAGE . 'session/');
define('DIR_UPLOAD', DIR_STORAGE . 'upload/');
// DB
define('DB_DRIVER', 'mysqli');
define('DB_HOSTNAME', '10.244.0.36');
define('DB_USERNAME', 'ocuser');
define('DB_PASSWORD', 'vRealiz3!');
define('DB_DATABASE', 'opencart');
define('DB_PORT', '3306');
define('DB_PREFIX', 'oc_');
<?php
// HTTP
define('HTTP_SERVER', 'http://10.244.0.36/');
// HTTPS
define('HTTPS_SERVER', 'http://10.244.0.36/');
on the console also i m seeing a lot of err connection .. maybe its due to the fact i m going through a LB to get to the web site
Attachments
console errors.png (156.05 KiB) Viewed 614 times
Server side issue. Try to load one of CSS resource using direct link, if not load - fix this.
My extensions in marketplace. [ security | flexibility | speedup ]
the page loads fine if i hit the server directly but the issue where like you said css doesnt load is when i go through the load balancer over port 80
so i m wondering if there is anything that needs to be set on the open cart server to fix this like session affinity
since i can see that the url to the css is still using the internal ip behind the LB which is not accessible from my network
thank you
M
so i m wondering if there is anything that needs to be set on the open cart server to fix this like session affinity
since i can see that the url to the css is still using the internal ip behind the LB which is not accessible from my network
thank you
M
Hi!
Try to change in your config.php
10.244.0.36 to 172.16.200.6 or you need to change network configuration.
Try to change in your config.php
10.244.0.36 to 172.16.200.6 or you need to change network configuration.
My extensions in marketplace. [ security | flexibility | speedup ]
Who is online
Users browsing this forum: hpwebdesign and 49 guests