I
I
Igor Gunkin2019-03-09 01:41:31
Apache HTTP Server
Igor Gunkin, 2019-03-09 01:41:31

Links don't work anymore after connecting ssl certificate, what could be the problem?

After connecting the ssl protocol, the links started not working correctly, following the links via http everything works, what could be the problem?
Logs from /var/log/apache2/error.log

[Sat Mar 09 01:30:48.049543 2019] [mpm_prefork:notice] [pid 20094] AH00169: caught SIGTERM, shutting down
[Sat Mar 09 01:30:49.181613 2019] [mpm_prefork:notice] [pid 20172] AH00163: Apache/2.4.10 (Debian) OpenSSL/1.0.1t configured -- resuming normal operations
[Sat Mar 09 01:30:49.181695 2019] [core:notice] [pid 20172] AH00094: Command line: '/usr/sbin/apache2'

conf in /etc/apache2/sites-enabled/ssl.conf
<VirtualHost *:443>
        ServerAdmin [email protected]
        ServerName site.ru
        DocumentRoot /var/www
    
    DirectoryIndex index.php index.html
 
        ErrorLog /var/log/apache2/site_ru_ssl_error.log
        LogLevel error
 
        CustomLog /var/log/apache2/site_ru_ssl.log combined
    
    AddType application/x-httpd-php .php
 
        SSLEngine on
        SSLCertificateFile /etc/ssl/site_ru.crt
  SSLCertificateChainFile /etc/ssl/site_ru.ca-bundle
  SSLCertificateKeyFile /etc/ssl/my_key.key

 
</VirtualHost>

Why is the main page working, but the rest of the links display an error
Not Found
The requested URL /news was not found on this server.

Apache/2.4.10 (Debian) Server at site.ru Port 443

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
SagePtr, 2019-03-09
@SagePtr

How about DocumentRoot /var/www ?
Usually, a separate folder is created in /var/www/ for each virtual host.
In Debian, by default for the default Wirth. host - /var/www/html

V
Viktor Taran, 2019-03-11
@shambler81

.htaccess to studio
nginx config to studio

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question