Skip to main content

Order of VirtualHost entries in httpd.conf ?

Comments

8 comments

  • cPanelMichael
    Hello, The following thread should help:
    0
  • Qbist
    Thank you for the link. So is the solution that when I manually change the order in httpd.conf (which I did as temporary workaround), the following script would somehow magically preserve the order of the VirtualHost entries? /usr/local/cpanel/bin/apache_conf_distiller --update
    0
  • cPanelMichael
    Hello, Right, the Apache distiller is used to preserve changes to the Apache configuration file. Thank you.
    0
  • Qbist
    Unfortunately this didn't work. I've tried: - changing the order of the VirtualHost entries and run apache_conf_distiller --update - manually adding a VirtualHost entry and run apache_conf_distiller --update Both changes where lost the next time the configuration was automatically created As alternative, what determines in WHM in what order the VirtualHost entries are generated? Is it possible to use some prefix or change the order in a database to get this permanently resolved?
    0
  • cPanelMichael
    You could try the instructions in the following post:
    -1
  • Qbist
    Thanks. That's what I ended up doing. Bit of a hack but it seems to work.. Still wonder if there is a cleaner way of setting the VirtualHost order?
    -1
  • cPanelMichael
    Still wonder if there is a cleaner way of setting the VirtualHost order?

    There's no easier methods I'm aware of, but it's a good idea for a feature request: Submit A Feature Request Thank you.
    0
  • Qbist
    Done, see
    0

Please sign in to leave a comment.