I dont know about cgi-bin dir, but I use mint (php stats) in my
mephisto blog. My vhost looks something like this:
<VirtualHost *:80>
ServerName metaskills.net
ServerAlias www.metaskills.net
DocumentRoot "/Library/WebServer/hosts/metaskills.net/public"
<Directory "/Library/WebServer/hosts/metaskills.net/public">
Include conf/common/default_options.conf
Include conf/common/expires.conf
</Directory>
<Directory "/Library/WebServer/hosts/metaskills.net/public/mint">
<IfModule mod_php5.c>
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
</IfModule>
DirectoryIndex index.php
</Directory>
RewriteEngine On
# Make sure to stop processing redirects for mint.
RewriteCond %{REQUEST_URI} ^/mint/$
RewriteRule ^/(.*)$ /mint/index.php [L]
RewriteCond %{REQUEST_URI} ^/mint.*
RewriteRule ^/(.*)$ %{REQUEST_URI} [L]
Include conf/common/deflates.conf
</VirtualHost>
On Apr 23, 2008, at 4:32 PM, Danimal wrote:
> If I use mod_rails, can I still define and use a cgi-bin directory for
> perl stuff and/or PHP stuff?
> Maybe these should be two separate questions. Ultimately, though, I
> can't tell from the docs if a virtual host has to be set for rails
> only or if it can run rails in the documentroot but also define a cgi-
> bin scriptdir?
> -Danimal
> --~--~---------~--~----~------------~-------~--~----~
> You received this message because you are subscribed to the Google
> Groups "Phusion Passenger Discussions" group.
> To post to this group, send email to phusion-
> passenger@googlegroups.com
> To unsubscribe from this group, send email to phusion-passenger-unsubscribe@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/phusion-passenger?hl=en
> -~----------~----~----~----~------~----~------~--~---