Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 221157

Summary: www-servers/apache-2.2.8: default_vhost.include lacks ServerName
Product: Gentoo Linux Reporter: Martin Mokrejš <mmokrejs>
Component: [OLD] ServerAssignee: Apache Team - Bugzilla Reports <apache-bugs>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Martin Mokrejš 2008-05-10 05:21:33 UTC
I do not know why it does not work for me, but I have accepted the config file contents and let etc-update remove my ServerName definition as shown below. Since then, I cannot start apache. Why do you remove important variables to get the system rely on hostname(1) or what?

File: /etc/apache2/vhosts.d/._cfg0000_default_vhost.include
1) Replace original with update
2) Delete update, keeping original as is
3) Interactively merge original with update
4) Show differences again
Please select from the menu above (-1 to ignore this update): 3
/etc/apache2/vhosts.d/._cfg0000_default_vhost.include /etc/apache2/vhosts.d/default_vhost.include /var/tmp/etc-update-9398//etc/apache2/vhosts.d/default_vhost.include.merged
Merging /etc/apache2/vhosts.d/._cfg0000_default_vhost.include and /etc/apache2/vhosts.d/default_vhost.include
# ServerName gives the name and port that the server uses to  <
# This can often be determined automatically, but we recommen <
# it explicitly to prevent problems during startup.           <
#                                                             <
# If your host doesn't have a registered DNS name, enter its  <
#                                                             <
ServerName ribosome.natur.cuni.cz:80                          <
                                                              <
%r
        Options +Indexes +Includes +MultiViews +FollowSymLink |         Options Indexes FollowSymLinks
%l
1) Replace /etc/apache2/vhosts.d/default_vhost.include with merged file
2) Show differences between merged file and original
3) Remerge original with update
4) Edit merged file
5) Return to the previous menu
Please select from the menu above (-1 to exit, losing this merge): 1
Replacing /etc/apache2/vhosts.d/default_vhost.include with /var/tmp/etc-update-9398//etc/apache2/vhosts.d/default_vhost.include.merged
mv: overwrite `/etc/apache2/vhosts.d/default_vhost.include'? y
rm: remove regular file `/etc/apache2/vhosts.d/._cfg0000_default_vhost.include'? y


# /etc/init.d/apache2 start
 * Starting apache2 ...
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:443
no listening sockets available, shutting down
Unable to open logs
#

# hostname
ribosome
# domainname 
(none)
#
Comment 1 Benedikt Böhm (RETIRED) gentoo-dev 2008-05-10 17:38:39 UTC
you need to fix your /etc/hosts if it does not work without ServerName

verify that it works with `hostname -f`