: 14 maja 2015, 14:44
Tylko dla pliku z sites-available. W katalogu /var/www/html nie musisz zmieniać.
Polski portal użytkowników dystrybucji Debian GNU/Linux, dyskusje, artykuły, nowości, blog, porady, pomoc.
https://www.debian.pl/
Kod: Zaznacz cały
Enabling site strona-testowa.
To activate the new configuration, you need to run:
service apache2 reload
Kod: Zaznacz cały
Job for apache2.service failed. See 'systemctl status apahce2.service' and journalctl -xn' for details.
Kod: Zaznacz cały
Process: 1335 ExecReload=/etc/init.d/apache2 reload (code=exited, status=1/FAILURE)
maj 15 12:35:09 debian systemd[1]: Reload failed for LSB: Apache2 web server.
Kod: Zaznacz cały
maj 15 12:35:09 debian systemd[1]: Reload failed for LSB: Apache2 web server.
Kod: Zaznacz cały
<VirtualHost *:80>
ServerName forum.xxx.pl
ServerAdmin xxx@gmail.com
DocumentRoot /var/www-xxx_pl-forum
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory /var/www-xxx_pl-forum/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>