Apache config

Discussion in 'Installation/Configuration' started by brucebruce, Nov 12, 2005.

  1. brucebruce

    brucebruce New Member

    How can I set the "Use CanonicalName" from Off to On at the apache?
    I had tried to set at /etc/httpd/conf/http.conf , /etc/httpd/conf/vhost/....but all not work!!
    Please help,since one of program i use need this setting
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Did you restart Apache after your change?

    What's the output of
    Code:
    httpd -V
    ?
     
  3. brucebruce

    brucebruce New Member

    Sure restarted apache everytime I changed config.

    httpd -V output:
    Server version: Apache/2.0.52
    Server built: Oct 15 2004 11:39:29
    Server's Module Magic Number: 20020903:9
    Architecture: 32-bit
    Server compiled with....
    -D APACHE_MPM_DIR="server/mpm/prefork"
    -D APR_HAS_SENDFILE
    -D APR_HAS_MMAP
    -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
    -D APR_USE_SYSVSEM_SERIALIZE
    -D APR_USE_PTHREAD_SERIALIZE
    -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
    -D APR_HAS_OTHER_CHILD
    -D AP_HAVE_RELIABLE_PIPED_LOGS
    -D HTTPD_ROOT="/etc/httpd"
    -D SUEXEC_BIN="/usr/sbin/suexec"
    -D DEFAULT_PIDLOG="logs/httpd.pid"
    -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
    -D DEFAULT_LOCKFILE="logs/accept.lock"
    -D DEFAULT_ERRORLOG="logs/error_log"
    -D AP_TYPES_CONFIG_FILE="conf/mime.types"
    -D SERVER_CONFIG_FILE="conf/httpd.conf"
     
  4. falko

    falko Super Moderator Howtoforge Staff

    The Apache configuration file you have to change is /etc/httpd/conf/httpd.conf.
    The directive is
    Code:
    UseCanonicalName On
     

Share This Page