Koozali.org: home of the SME Server

Virtual Domains, multiple index pages, and me

JohnnyKH

Virtual Domains, multiple index pages, and me
« on: July 17, 2005, 07:27:46 AM »
Okay, I've been working excessive amounts of OT at work lately, so I admit up-front I've likely overlooked some answers for one reason or another. I have looked far and wide for the answers and I'm at an currently impassable, highly-frustrated point. So I'd like to ask everyone here to see what we can come up with.

The SME Server in question (6.5RC1) is hosting my company's intranet, as well as other company sites and quite a few personal sites as well. The question I have is regarding virtual domains. Now I've looked throughout the site, including topics just happening to be about virtual domains, and I don't believe I've come across conversation or instructionals that would clue me in on the answers I need. However, if someone here happens to have links I didn't clue-in to or happened to miss, that's answers as much as anything else I'll appreciate.

I have decided to use MoveableType as a new link off the main site, which uses CGI-BIN as well as HTML folders. Using the tutorial I found on here to set it up, I got it to work just fine for the PRIMARY domain on the server. I know what it looks like and have used it and it works there just fine. I have a virtual domain as a personal site. Setting it up on a virtual domain is where I've run into problems.

First I tried creating an i-bay (all i-bays are named uniquely to identify their association with their main bays), setting it up there, and then trying to go to the virtual domain (www.virtualdomain.blah/subdirectory) - NoGo. Getting no page found. Well, hmm. So I try (foolish step here) copying the contents into a subdirectory under the virtual domain itself on the SME server, and try it there - okay, dumb move, not working, virtual domains work differently and don't just link like that. So, I try again. I copy the CGI-BIN folders into the virtual domain's i-bay CGI-BIN folder, create a subfolder under the HTML folder and put the HTML files there, and try it.

Now I can get to most of the MoveableType data. However, the HTML data doesn't look right, and doesn't link right (somewhere I hear someone saying "well, of course...") .

I know I've just forgotten a few steps here, and I know I need to learn a few things about how virtual domains and i-bays work. I won't claim to be perfect. Most of how SME works, as well as i-bays and virtual domains, was self-taught and on-the-fly. I promise to only admit to knowing what I've already learned, and to be willing to learn what I don't yet know.

I have a few basic questions here: (1) can a virtual domain only use up to 1 index file and\or 1 i-bay? (2) how do you use additional i-bays with virtual domains, or can you? (3) do you, and if so how do you, link additional i-bays to virtual domains outside of the normal setups?

I will thank anyone with constructive comments or suggestions here. I've been looking at all sorts of course, from Google-ing outside to all potential forums on the topics. I've just been worked hard lately and I'm really tired, so I'm sure I've just overlooked the answers somewhere.

Offline raem

  • *
  • 3,972
  • +4/-0
Re: Virtual Domains, multiple index pages, and me
« Reply #1 on: July 17, 2005, 09:40:58 AM »
JohnnyKH

Did you read this thread
http://forums.contribs.org/index.php?topic=14556.msg55599#msg55599

I don't know anything about Movebale Type, just commenting.
Which version of MT and which HOWTO are you using ?


>  Using the tutorial I found on here to set it up, > I got it to work just fine for the PRIMARY domain > on the server.

So you installed it correctly (for Primary)


> I copy the CGI-BIN folders into the virtual
> domain's i-bay CGI-BIN folder, create a subfolder > under the HTML folder and put the HTML files there

Is that correct ? Shouldn't the files in Primary/html be put it the ibay/html folder ?


Did you configure MT correctly ?

From the original howto:
. Edit the Movable Type Config File
Now the configuration file needs to be set up with the new directory structure.
      cd /home/e-smith/files/ibays/mt/cgi-bin
   pico -w mt.cfg
   Look for the line that says:
CGIPath http://WWW.YOUR-SITE.COM/PATH/TO/MT/
      Change this line to look like:   
      CGIPath http://www.my.server.com/mt/cgi-bin/
   Look for the line that sasy:
DataSource ./db
   Change this line to look like:
      DataSource /home/e-smith/files/ibays/mt/files/db
   Look for the line that says:
# StaticWebPath /path/to/static-files/
      Change this line to look look like: (remove the # at the start)
      StaticWebPath http://www.my.server.com/mt/
   Save and Exit the editor
      Press Ctrl-X
      Press Y
      Press Enter
...

JohnnyKH

Been there, done that
« Reply #2 on: July 18, 2005, 01:44:25 AM »
Indeed, that is the very thread that I utilized to install MoveableType. I first used it with an i-bay when using it under the primary domain. It did, indeed, work there. So I know that it works.

My problem is that I did the same process, but I did so for a virtual domain - not the primary domain. And when I tried to use it, following the same directions but specific to the virtual domain, it didn't go. My stories tell the tale.

My confusion here is that I don't know how virtual domains, specifically with the SME server, function. And I don't know if there is some sort of way I need to change any of the script for MT, or customize the virtual domain, or change anything on the SME to make it work. Or if it CAN work.

That's why I'm asking the generous, knowledgable forum posters for any sort of insight here. And, thank you for posting.

JohnnyKH