( sipiatti | 2013. 08. 23., p – 12:49 )

köszi ez hasznos.
nos, kivettem minden vhostot a defaulton kívül.
erre ezt hozza
root@server1:/etc/apache2/sites-enabled# apache2ctl -S
apache2: Could not reliably determine the server's fully qualified domain name, using server1.csysc.eu for ServerName
VirtualHost configuration:
178.238.227.92:80 is a NameVirtualHost
default server osawa.hu (/etc/apache2/sites-enabled/000-default:1)
port 80 namevhost osawa.hu (/etc/apache2/sites-enabled/000-default:1)
Syntax OK

A gond csak az, hogy az osawa.hu a kérdéses vhost, és a default fájlban egy betű sem szól róla,
a gép neve server1.csysc.eu. Honnan veszi ezt vajon magára?

default vhost fájl:

root@server1:/etc/apache2/sites-enabled# cat 000-default
<VirtualHost 178.238.227.92:80>

ServerAdmin sipiatti@gmail.com

DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
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 debug

CustomLog ${APACHE_LOG_DIR}/access.log vhost_combined

Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>

</VirtualHost>

---
Why use Windows, if you have open doors… to Linux