Select Your Language

Infrastructure and Management

Cloud Computing

Storage

Runtimes

Integration and Automation

  • Comments
  • Create VirtualHost official doc example not working

    Posted on

    If you follow official documentation 25.7.1. Setting Up Virtual Hosts instructions you have an error on restarting httpd service.

    The following error appears after

    sudo service http restart
    command :

    httpd[15064]: AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/httpd/conf.d/migration.conf:1
    httpd[15064]: AH00112: Warning: DocumentRoot [/var/www/migration] does not exist
    httpd[15064]: AH00526: Syntax error on line 8 of /etc/httpd/conf.d/migration.conf:
    httpd[15064]: CustomLog takes two or three arguments, a file name, a custom log format string or format name, and an optional "env=" or "expr=" clause (see docs)
    systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
    kill[15066]: kill: cannot find process ""
    systemd[1]: httpd.service: control process exited, code=exited status=1
    systemd[1]: Failed to start The Apache HTTP Server.
    systemd[1]: Unit httpd.service entered failed state.
    systemd[1]: httpd.service failed.
    

    by

    points

    Responses

    Red Hat LinkedIn YouTube Facebook X, formerly Twitter

    Quick Links

    Help

    Site Info

    Related Sites

    © 2026 Red Hat