• I beg everyone’s pardon, but usually need things explained to me very slowly and twice. I am upgrading from Movabletype where I maintained two blogs, each with its own domain name using apache and name-based virtual hosting.
    I have now migrated to Mac OS X and WP 1.2. The first blog I brought over went fine. I created a database “blog,” I imported that blog entries…no problem. Then I installed the second instance of WP. I had put the first instance in:
    /Library/WebServer/Documents/blog/
    I put the second one in
    /Library/WebServer/Documents/paige/blog/
    I created a new database table for it “paigeblog” and everything seemed to be going fine. Everything went to hell when I tried to set up the name-based virtual hosting in apache.
    The second blog began using config files (like the styles) of the first one…when I updated the “options” in one blog, the other one would be changed also. Perhaps this is because they were configed to use:
    https://scottfeldstein.net/blog
    and
    https://paigefeldstein.net/blog
    as URLs. you’d think this would be okay, as the virtual hosting indicated that they were separate paths (see top of this rant). But it’s messed up
    As of now I have shut of virtual hosting and only have the one primary blog up, which seems to work okay.
    HELP! Anyone who’s willing to shed any light on this will be my best friend for ever and ever.
    Scott

Viewing 3 replies - 1 through 3 (of 3 total)
  • Post your apache config for the virtual hosts. What’s the docroot for the paige site? Why is the paige directory under your main docroot?

    Thread Starter scottfeldstein

    (@scottfeldstein)

    Here is the relevant bit from my httpd.conf file. Note: I have all this commented now so I can continue to use the one primary site.
    #NameVirtualHost *:80
    #<VirtualHost *:80>
    #ServerName scottfeldstein.net
    #ServerAlias https://www.scottfeldstein.net
    #DocumentRoot Library/WebServer/Documents/blog/
    #</VirtualHost>
    #<VirtualHost *:80>
    #ServerName paigefeldstein.net
    #ServerAlias https://www.paigefeldstein.net
    #DocumentRoot /Library/WebServer/Documents/paige/
    #</VirtualHost>
    Do you think it’s a huge mistake to have the “paige” directory (the root of one of the virtual hosts) under the main document root of the sever?

    Thread Starter scottfeldstein

    (@scottfeldstein)

    Hey, nobody caught it but I saw it two days after posting this – there’s a missing “/” at the beginning of one of the DocumentRoot paths. Doh! Anyway everything works now. Thanks for caring ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘2 blogs, 2 db tables, virtual hosting’ is closed to new replies.