Apache2 - 403 Forbidden on connection to Domain

Problems with the Linux version of XAMPP, questions, comments, and anything related.

Apache2 - 403 Forbidden on connection to Domain

Postby MattH » 06. August 2021 12:45

I am trying to run a website via company's domain. Right now it is only working via the IP address. I'm stumped on what could be the problem.
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>
MattH
 
Posts: 1
Joined: 06. August 2021 12:06
XAMPP version: N/A
Operating System: Debian 10

Re: Apache2 - 403 Forbidden on connection to Domain

Postby Altrea » 06. August 2021 12:53

How is that topic related to XAMPP for Linux?
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11933
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 50 guests