а как это проверить?
Is there a firewall or IPS appliance or similar software running anywhere between your server and the Internet?
нет, нету
перестало грузить как только мы удалили другие ип на дадедди
Removing an IP doesn't explain this problem.
There must be something blocking IPs.
If you can't find where to fix that, you may have to change the authentication method OR use a CDN service like Cloudflare.
но до этого же не блокировало, как только подключился сертификат, перестало работать на нашем ип
единственное на компьютере где стоит сервер (унбунту) возможно есть какой-то фаервол, как это проверить? и ещё на одном рабочем пк есть браундмайзер виндовс, может ли это как-то влеять?
Let's start solving this riddle by looking at the output of the file:
/etc/apache2/sites-enabled/000-default.conf
<VirtualHost *:80>
ServerName maksconsulting.ca
DocumentRoot /var/www/html
RewriteEngine on
RewriteCond %{SERVER_NAME} =maksconsulting.ca
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
I see nothing wrong there.
The problem must be somewhere else.
How are you forwarding the HTTP requests?
Is there a router doing the NAT?
yes, ports 80 and 443 are routed to the local ip of the machine 192.168.1.26
Let's see that router settings page.
**Network > Firewall > Port Forwarding
You can configure the router as a virtual server so that remote users accessing services such as the Web or FTP at your local site via public IP addresses can be automatically redirected to local servers configured with private IP addresses. In other words, depending on the requested service (TCP/UDP port number), the router redirects the external service request to the appropriate server (located at another internal IP address).
Port Forwarding List (Max Limit : 32)
No. Status Private IP Protocol Private Port Public Port Configure
1 192.168.1.76 TCP 80 80 EditDelete
2 192.168.1.76 TCP 443 443 EditDelete
Add
Cancel **
Is that a TYPO?
On the web server, please show:
ip addr | grep inet
yes, sorry, ifconfig confirms its .76
Have you tried rebooting the router?
If not, please reboot the router.
Does the router have a login page on port 80?
If so, you may need to move it to some other port.
havent tried rebooting, yes it does, but on diffferent IP
The router may be eating the external HTTP requests.
It may be unable to forward them while it is also using port 80 for itself.
Read the manual and see if the router port can be changed.
interesting, ok will do, thank you!
HTTP works now!:
curl -Ii http://maksconsulting.ca/
HTTP/1.1 301 Moved Permanently
Date: Wed, 16 Aug 2023 06:04:41 GMT
Server: Apache/2.4.52 (Ubuntu)
Location: https://maksconsulting.ca/
Content-Type: text/html; charset=iso-8859-1