/etc/init.d/apache2 restart
Restarting web server: apache2(98)Address already in use: make_sock: could not bind to address [::]:443
(2) No such file or directory: apache2: could not open error log file /etc/apache2/${APACHE_LOG_DIR}/error.log.
Unable to open logs
NameVirtualHost *:443
Listen 80
Listen 443
<IfModule mod_ssl.c>
# If you add NameVirtualHost *:443 here, you will also have to change
# the VirtualHost statement in /etc/apache2/sites-available/default-ssl
# to <VirtualHost *:443>
# Server Name Indication for SSL named virtual hosts is currently not
# supported by MSIE on Windows XP.
Listen 443
</IfModule>
<IfModule mod_gnutls.c>
Listen 443
</IfModule>
Yampress, nie bardzo rozumiem o co Ci chodzi, a serwer nadal nie działa. W zależności, czy wyłączę ,,Listen 443'' czy nie, zmienia się w błędzie port 80 lub 443.
Using Nautilus, navigate to “/etc/apache2” and edit “ports.conf”. Add this line after “Listen 80”
Listen 443
Czyli tak jak ma rzeczywiście być, więc nie wiem skąd Ci się wziął tam Virtualhost. Będzie działać ale bez tego też będzie działać i taka jest poprawna składnia tego pliku ( bez Virtulhosta).
Nie wiem kto to pisał ten opis ale jest bardzo klikany, więc podejrzewam, że autor też nie ma super poziomu. Bo takie rzeczy powinno robić się w terminalu.
Listen 80
Listen 443
<IfModule mod_ssl.c>
# If you add NameVirtualHost *:443 here, you will also have to change
# the VirtualHost statement in /etc/apache2/sites-available/default-ssl
# to <VirtualHost *:443>
# Server Name Indication for SSL named virtual hosts is currently not
# supported by MSIE on Windows XP.
Listen 443
</IfModule>
<IfModule mod_gnutls.c>
Listen 443
</IfModule>