Tuesday, January 18, 2011

embed wordpress or other php application to a django/python site ?

Hi all,

Is that possible to embed wordpress or other php application to a django/python site ? I am running apache web server on linux...

Thanks

  • i figured it out myself.

    Just redirect the subdomain of using php application to a different location at apache configure

    if you like blog.yourdomain.com be a php applicaiton just at a subdomain

    at apache configure

    <VirtualHost *:80>
            ServerName   blog.yourdomain.com
            UseCanonicalName Off
            ServerAdmin  "contact@yourdomain.com"
            DocumentRoot /var/www/vhosts/yourdomain.com/blogapplicaiton
    </VirtualHost>
    

    and put your php code in /var/www/vhosts/yourdomain.com/blogapplicaiton

    you get all other web application through django but blog.yourdomain.com using php applicaiton.

    From Weiwei

0 comments:

Post a Comment