Re: [SLUG] cgi-bin and moveable type

From: Brad Smith (brad_stephenssmith@yahoo.com)
Date: Fri Jun 13 2003 - 12:36:45 EDT


I'm not an Apache master, but here's what I would do:

First, I'd set up the directory structure:

/var
  |-www
     |-vhost1
          |-html
          |-cgi-bin

Then, I'd set up a directory block in httpd.conf for each cgi-bin. Something like this (though you
should probably just cut/paste the settings for your default cgi-bin):

<Directory "/var/www/vhost1/cgi-bin">
  Options ExecCGI -Indexes
</Directory>

Finally, I'd set up the virtualhost directive for vhost1 with it's own cgi-bin alias (this assumes
that you have mod_alias installed, which you probably do):

<VirtualHost *:80>
  ServerName vhost1.mydomain.com
  DocumentRoot /var/www/vhost1/html
  Alias /cgi-bin /var/www/vhost1/cgi-bin
</VirtualHost>

I'm not in a position to test this at the moment and it's all from memory so I could be wrong, but
I believe that should work.

Good luck,
--Brad

--- jeremy bowers <ferret@jeremybowers.com> wrote:
> Folks:
>
> Trying out moveable type for the first time, and I'm having problems.
>
> There don't seem to be many guides for navigating cgi-bin under apache
> with virtual hosts! (name based, of course)
>
> My problem is that I need to have a cgi-bin directory for EACH of my
> virtual hosts, and I can't figure it out to save my life.
>
> Anybody in the mood to help a noob?
>
> --Jeremy
>



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 16:37:31 EDT