سلام دوستان
من می خواستم
در فایل /etc/apache2/conf.d/virtual.conf
یک کانفیگ از اینترنت پیدا کردم و گذاشتم
# Listen for virtual host requests on all IP addresses
NameVirtualHost *
<VirtualHost *>
DocumentRoot /var/www/example1
ServerName www.example1.com
# Other directives here
</VirtualHost>
<VirtualHost *>
DocumentRoot /var/www/example2
ServerName www.example2.org
# Other directives here
</VirtualHost>
ولی وقتی می خواهم apache2 را restart می کنم خطای زیر رو نشان می ده
sudo: unable to resolve host mzz-laptop
* Restarting web server apache2 apache2: apr_sockaddr_info_get() failed for mzz-laptop
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[Sat May 17 19:32:41 2008] [warn] NameVirtualHost localhost:80 has no VirtualHosts
httpd (no pid file) not running
apache2: apr_sockaddr_info_get() failed for mzz-laptop
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[Sat May 17 19:32:56 2008] [warn] NameVirtualHost localhost:80 has no VirtualHosts
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
[fail]
البته من یک دایرکتوری توی شاخه /var/www/
ایجاد کردم
ولی درست کار نمی کنه میخواستم ببینم مشکل از کجا بوده.
ارادتمند