Very sad problem :)

Discussion in 'Server Operation' started by unkn0wn, Apr 28, 2006.

  1. unkn0wn

    unkn0wn New Member

    nothing unusual.
    sometimes i see in opera that servername is ip and sometimes is ok?? i mean wtf.
     
  2. falko

    falko Super Moderator Howtoforge Staff

    That sounds to mee as if you didn't set ServerName in the correct place...
     
  3. unkn0wn

    unkn0wn New Member

    here from apache.conf

    Code:
    # you will save yourself a lot of trouble.
    
    ServerRoot "/etc/apache2"
    ServerName www.domain.com
    
    and here is my VHOST file

    Code:
    NameVirtualHost *:443
    NameVirtualHost *:80
    
    
    <VirtualHost *:443>
            ServerAdmin webmaster@localhost
            ServerName www.domain.com
            DocumentRoot /var/www
            <Directory />
    
    -------------
    
    <VirtualHost *:80>
            ServerAdmin webmaster@localhost
            ServerName www.domain.com
            DocumentRoot /var/www
            <Directory />
    
    --------------
    
    must i put domain or ip in VirtualHost directive and in NameVirtualHost?
     
  4. falko

    falko Super Moderator Howtoforge Staff

    It's the IP address.
     

Share This Page