#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2003
    Posts
    16
    Rep Power
    0

    mod_python embedded apache configuration


    Hello,
    i try to configure my apache vhosts through a database and have found the <perl>...</perl> directive with mod_perl to insert embedded perl code in the apache configurations.
    My question is, if there is a <python></python> directive in mod_python to do this with python.
    Thanks for every help
  2. #2
  3. Hello World :)
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2003
    Location
    Hull, UK
    Posts
    2,537
    Rep Power
    69
    Sorry no luck but it sounds interesting! I did a quick search of the mod_python docs but

    Your wanting to embed Python code in the config file? or a webpage?

    Mark.
    programming language development: www.netytan.com Hula

  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2003
    Posts
    16
    Rep Power
    0
    I want to read the vhosts for my server from a database (not from the config file directly) through mod_python. Perl supports the embed code. (Example: http://perl.apache.org/start/tips/co..._virtual_hosts) I hoped python also.

    FraterQ
  6. #4
  7. Hello World :)
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2003
    Location
    Hull, UK
    Posts
    2,537
    Rep Power
    69
    Sorry to say this but i dout it! I myself have never got mod_python to run but i'm on windows so.. keep looking though!

    Mark.
    programming language development: www.netytan.com Hula


IMN logo majestic logo threadwatch logo seochat tools logo