aleix's blog

Split <VirtualHost> directives into multiple files

15 February 2007 7:57 pm (apache | python)

Yesterday, I found out that I needed an application to split the virtual hosts of an Apache 1.3 configuration into separate files so I could use them in the sites-available/sites-enabled Debian's Apache 2 way. I googled just a bit and I did not find anything so I did my own one (vhost-split.py).

Just pass it the configuration file and the script will generate a bunch of files named with the ServerName variable found in each virtual host. Note that repeated entries will generate separate files (www.mydomain.com, www.mydomain.com-1, ...). The script will also report commented entries.

22 responses

  1. Bst says:

    Thanksss you save my day

  2. Write My Essay For Me says:

    Science Channel’s are giving a complete knowledge to its viewers about every thing students write done dissertation on this subjects and show its importance.

  3. Electronics Engineering Assignment Help Online says:

    Great info! I recently came across your blog and have been reading along. I thought I would leave my first comment. I don’t know what to say except that I have

  4. Ecology Assignment Help | AssignmentInc.com says:

    This is really great work. Thank you for sharing such a useful information here in the blog.

  5. R Programming Assignment Help says:

    Those who come to read your article will find lots of helpful and informative tips

  6. Hobards (A) Case Assistant says:

    Really i appreciate the effort you made to share the knowledge. This is really a great stuff for sharing. Keep it up . Thanks for sharing.

  7. mietek44r says:

    Very good work.

  8. Lexi says:

    Right now here is a light question to consult – how to establish this kind of awesome review? It has almost all attributes what make a good review. Here is a getting name and fascinating articles. Well done!

  9. Quinn says:

    I ought to declare that truly one of the most worthwhile posts I have actually look over. It's also skilfully developed. I am an British teacher so I know what I mean.

  10. Megan says:

    Very great content! It truly is a pure enjoyment to read it. Congratulation! Well done! I am holding out for much more messages.

  11. Fiella says:

    Right now there is a quick doubt to consult – how to produce such a excellent review? It shows all components what make a good review. Here is a catching headings and fascinating content. Well-done!

  12. Bambi says:

    I should confess that it is one of the most interesting information I have actually understand. It is also expertly published. I'm an British teacher so I know what I suggest.

  13. Arina says:

    An amazing document! It is a natural enjoyment to understand it. Congratulation! Well done! I am waiting for much more messages.

  14. Taria says:

    Hello everybody! It's very enjoyable content. I really am shocked that you are so skilled. I didn't esteem you!

  15. Watford says:

    Good writer! Thank you for becoming there and placing so actually content. There is anyone who value it and express thank-you!

  16. Stratford says:

    In my advice, not numerous bloggers have so countless concepts to create unique, worthwhile articles. Many cheers for performing it and I really want you did not lose the motivation to make the unique ones!

  17. St Albans says:

    I perfectly accept with the past reader. I presume the ideal inspiration and excellent reviews are wonderful foundation to create high quality content.

  18. Stansted says:

    I have regularly asked yourself how to create top excellence components and write them on the website. Now I must say that the task isn't for me. I keep it for professional writers.

  19. Megan says:

    In my view, not countless bloggers own so countless strategies to build new, appealing content. Thanks for doing it and I wish you did not lose the inspiration to make the unique ones!

  20. Pammy says:

    I completely accept with the previous viewer. I think the big inspiration and excellent views are great foundation to compose high quality content.

  21. Julya says:

    I have usually thought about how to prepare top superiority materials and write them on the site. These days I must say that the job is not for me. I allow it for professional experts.

  22. All Assignment help reviews says:

    A superior all assignment Help reviews offered by this website with the advantage of online support with high proficiency level based on its latest research and information by professional reviews writers. Wide ranges of
    subjects are covered with separate writers for each subject.

Leave a Reply