Zdravim
Mam debian 10 a nextcloud...
port 80 funguje v pohode ale pokusam sa rozbehnut 443
isiel som podla navodu:
https://www.youtube.com/watch?v=NDX5KmWWc58certifikaty dva vygenerovane presunute kde maju byt...
len pri restarte apache mam uplne inu chybu ako v navode nie je.... a uz mi prestalo ist aj port 80 cize usudzujem chyba v nastaveni:
mam tam toto:
<VirtualHost *:80>
ServerAdmin admin@example.com
DocumentRoot /var/www/html/nextcloud/
ServerName nextcloud.example.com
Alias /nextcloud "/var/www/html/nextcloud/"
<Directory /var/www/html/nextcloud/>
Options +FollowSymlinks
AllowOverride All
Require all granted
<IfModule mod_dav.c>
Dav off
</IfModule>
SetEnv HOME /var/www/html/nextcloud
SetEnv HTTP_HOME /var/www/html/nextcloud
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
<VirtualHost *:443>
ServerAdmin admin@example.com
DocumentRoot /var/www/html/nextcloud/
ServerName nextcloud.example.com
Alias /nextcloud "/var/www/html/nextcloud/"
<Directory /var/www/html/nextcloud/>
Options +FollowSymlinks
AllowOverride All
Require all granted
<IfModule mod_dav.c>
Dav off
</IfModule>
SetEnv HOME /var/www/html/nextcloud
SetEnv HTTP_HOME /var/www/html/nextcloud
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLEngine on
SSLCertificateFile /etc/apache2/cert/cert.pem
SSLCertificateKeyFile /etc/apache2/cert/key.pem
</VirtualHost>
zatial dns nazov este nemam mne staci pristupovat cez lokalnu ip adresu....
apache pri restarte vyhadzuje:
root@debian:~# /etc/init.d/apache2 restart
[....] Restarting apache2 (via systemctl): apache2.serviceJob for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xe" for details.
failed!
co moze byt zle?
za odpoved vopred dakujem