Portál AbcLinuxu, 25. dubna 2024 18:35
Řešení dotazu:
server1:~# ls /etc/apache2/sites-available
default default-ssl www.3studne.cz
VirtualHost * -závorky tady mám, ale nejde mi to sem poslat
ServerAdmin jiri-jr@halva.org
ServerName www.3studne.cz
ServerAlias 3studne.cz
# Indexes + DIrectory Root.
DirectoryIndex index.html
DocumentRoot /home/3studnecz/
/VirtualHost -závorky tady mám, ale nejde mi to sem poslat
server1:~# a2ensite www.3studne.cz
ERROR: Site www.3studne.cz not properly enabled: /etc/apache2/sites-enabled/www.3studne.cz is a real file, not touching it
server1:~# /etc/init.d/apache2 reload
apache2: Syntax error on line 281 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/sites-enabled/3studne.cz: No such file or directory failed!
server1:~# /etc/init.d/apache2 reload
Reloading web server config: apache2[Thu Jan 14 21:55:24 2010] [warn]
NameVirtualHost *:80 has no VirtualHosts.
<VirtualHost *:80>
ServerName www.3studne.cz
ServerAdmin jiri-jr@halva.org
DocumentRoot /home/3studnecz/
<Directory "/home/3studnecz">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
drwxrwsr-x 3 ftpuser ftpgroup 4096 13. led 23.27 3studnecz
Tiskni Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.