https://harmony-air.com, my store, yields the 403 error:
Forbidden
You do not have permission to access /index.html on this server.
"index.html"? But opencart is PHP!
Please help, the site works if http, but also my browsers today all point to https not http for harmony.air.com, yesterday they pointed to and worked in http not secure, but today the store goes to https!
Thank you, Lee leemcgee
You made changes in config.php?
Or .htaccess
Or .htaccess
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
Both have some changes in them, here they are right here:
.htaccess
------------
[root@harmonynet public_html]# cat .htaccess_bad
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(cart/|checkout/) https://%{HTTP_HOST}%{REQUEST_URI}
(only had the cart/checkout https ReWrite in it)
config.php
--------------
[root@harmonynet public_html]# cat config.php
<?php
// HTTP
define('HTTP_SERVER', 'http://harmony-air.com/');
// HTTPS
define('HTTPS_SERVER', 'https://harmony-air.com/');
// DIR
define('DIR_APPLICATION', '/var/www/harmony-air.com/public_html/catalog/');
define('DIR_SYSTEM', '/var/www/harmony-air.com/public_html/system/');
define('DIR_IMAGE', '/var/www/harmony-air.com/public_html/image/');
define('DIR_LANGUAGE', '/var/www/harmony-air.com/public_html/catalog/language/');
define('DIR_TEMPLATE', '/var/www/harmony-air.com/public_html/catalog/view/theme/');
define('DIR_CONFIG', '/var/www/harmony-air.com/public_html/system/config/');
define('DIR_CACHE', '/var/www/harmony-air.com/public_html/system/storage/cache/');
define('DIR_DOWNLOAD', '/var/www/harmony-air.com/public_html/system/storage/download/');
define('DIR_LOGS', '/var/www/harmony-air.com/public_html/system/storage/logs/');
define('DIR_MODIFICATION', '/var/www/harmony-air.com/public_html/system/storage/modification/');
define('DIR_UPLOAD', '/var/www/harmony-air.com/public_html/system/storage/upload/');
define('DIR_CATALOG', '/var/www/harmony-air.com/public_html/catalog/');
// DB
define('DB_DRIVER', 'mysqli');
define('DB_HOSTNAME', 'xxxxxxxxxxxx');
define('DB_USERNAME', 'oc');
define('DB_PASSWORD', 'xxxxxxxxx');
define('DB_DATABASE', 'xxxxxxxxx');
define('DB_PORT', '3306');
define('DB_PREFIX', 'oc_');
I also use Virtual Hosts in my server, virtual host conf files had the Redirect permanent command in them which redirects all http to https.
Redirect permanent / https://harmony-air.com
Lee leemcgee
.htaccess
------------
[root@harmonynet public_html]# cat .htaccess_bad
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(cart/|checkout/) https://%{HTTP_HOST}%{REQUEST_URI}
(only had the cart/checkout https ReWrite in it)
config.php
--------------
[root@harmonynet public_html]# cat config.php
<?php
// HTTP
define('HTTP_SERVER', 'http://harmony-air.com/');
// HTTPS
define('HTTPS_SERVER', 'https://harmony-air.com/');
// DIR
define('DIR_APPLICATION', '/var/www/harmony-air.com/public_html/catalog/');
define('DIR_SYSTEM', '/var/www/harmony-air.com/public_html/system/');
define('DIR_IMAGE', '/var/www/harmony-air.com/public_html/image/');
define('DIR_LANGUAGE', '/var/www/harmony-air.com/public_html/catalog/language/');
define('DIR_TEMPLATE', '/var/www/harmony-air.com/public_html/catalog/view/theme/');
define('DIR_CONFIG', '/var/www/harmony-air.com/public_html/system/config/');
define('DIR_CACHE', '/var/www/harmony-air.com/public_html/system/storage/cache/');
define('DIR_DOWNLOAD', '/var/www/harmony-air.com/public_html/system/storage/download/');
define('DIR_LOGS', '/var/www/harmony-air.com/public_html/system/storage/logs/');
define('DIR_MODIFICATION', '/var/www/harmony-air.com/public_html/system/storage/modification/');
define('DIR_UPLOAD', '/var/www/harmony-air.com/public_html/system/storage/upload/');
define('DIR_CATALOG', '/var/www/harmony-air.com/public_html/catalog/');
// DB
define('DB_DRIVER', 'mysqli');
define('DB_HOSTNAME', 'xxxxxxxxxxxx');
define('DB_USERNAME', 'oc');
define('DB_PASSWORD', 'xxxxxxxxx');
define('DB_DATABASE', 'xxxxxxxxx');
define('DB_PORT', '3306');
define('DB_PREFIX', 'oc_');
I also use Virtual Hosts in my server, virtual host conf files had the Redirect permanent command in them which redirects all http to https.
Redirect permanent / https://harmony-air.com
Lee leemcgee
This has actually now gotten far worse, I am now receiving the HTTP 500 Server Error generic apache message from the browser! NOT the index.html message received earlier! http still works fine, I have been trying to install certificate for https on my server (Centos/Apache) but has not been successful yet. Lee leemcgee
I found the source of the 500 errors I had some typos in ssl.conf file, all fixed now.
But https still giving me the ERR_SSL_PROTOCOL_ERROR error, I still need to figure out why! I had been installing certificates which is what created my errors!
Thank you all for removing my database user/password details from these posts! Oops! I really appreciate your help. Lee leemcgee
But https still giving me the ERR_SSL_PROTOCOL_ERROR error, I still need to figure out why! I had been installing certificates which is what created my errors!
Thank you all for removing my database user/password details from these posts! Oops! I really appreciate your help. Lee leemcgee
Who is online
Users browsing this forum: No registered users and 174 guests