Running Software:
OS: Debian 9 (Plan on upgrading to Debian 11 when it gets a stable release)
Apache: 2.4
Go to http://10.0.0.1/ page runs just fine.
Go to https://website.com get error "403 - Forbidden: You don't have permission to access this resource."
I know the issue is not the HTTPS certificate because was an issue prior to generating my SSL .key file.
Sharing the configuration file I'm using for the website. ServerName and ServerAdmin values changed to keep settings private.
/etc/apache2/sites-enabled/website.conf
- Code: Select all
<VirtualHost *:80>
ServerName 10.0.0.1
ServerAdmin admin@website.com
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
LimitRequestFieldSize 500000
</VirtualHost>
<VirtualHost *:443>
ServerName website.com
ServerAdmin admin@website.com
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/ssl_error.log
CustomLog ${APACHE_LOG_DIR}/ssl_access.log combined
SSLEngine on
SSLCertificateFile "/etc/apache2/cert.crt"
SSLCertificateKeyFile "/etc/apache2/cert.key"
LimitRequestFieldSize 500000
</VirtualHost>