Skip to content

Instantly share code, notes, and snippets.

@iansheridan
Created July 28, 2009 18:06
Show Gist options
  • Save iansheridan/157570 to your computer and use it in GitHub Desktop.
Save iansheridan/157570 to your computer and use it in GitHub Desktop.
NameVirtualHost xxx.example.com
<VirtualHost xxx.example.com>
ServerAdmin name@example.com
ServerName xxx.example.com
DocumentRoot /u/apps/example/current/public
RailsBaseURI /app1
RailsBaseURI /app2
RackBaseURI /sinatra1
RackBaseURI /sinatra2
RackEnv production
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory /u/apps/example/current/public >
Options -Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
ScriptAlias /fcgi-bin /u/apps/fcgi-bin
# Set the options on that directory
<Directory /u/apps/fcgi-bin>
SetHandler fcgid-script
Options ExecCGI
allow from all
# Set the module handler
#AddHandler fcgid-script .fcgi
</Directory>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment