Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
home:mschnitzer:ruby:extensions
rubygem-refinerycms
cms.conf
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File cms.conf of Package rubygem-refinerycms
# # VirtualHost template for use with apache2 AND Ruby On Rails # Note: # you need to install: # - apache2-mod_fcgid # - ruby-fcgi # # NameVirtualHost statements can be added to /etc/apache2/listen.conf. # # Almost any Apache directive may go into a VirtualHost container. # The first VirtualHost section is used for requests without a known # server name. # # stuff for Phusion Passenger #LoadModule passenger_module /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.11/ext/apache2/mod_passenger.so #PassengerRoot /usr/lib64/ruby/gems/1.8/gems/passenger-2.2.11 #PassengerRuby /usr/bin/ruby <VirtualHost *:80> ServerAdmin webmaster@test.example.com ServerName test.example.com # DocumentRoot: The directory out of which you will serve your # documents. By default, all requests are taken from this directory, but # symbolic links and aliases may be used to point to other locations. DocumentRoot /srv/www/cms/public #RailsBaseURI /rails # if not specified, the global error log is used ErrorLog /var/log/apache2/test.example.com-error_log CustomLog /var/log/apache2/test.example.com-access_log combined # don't loose time with IP address lookups HostnameLookups Off # needed for named virtual hosts UseCanonicalName Off # configures the footer on server-generated documents ServerSignature On # For Ruby On Rails we need the AddHandler #AddHandler fastcgi-script .fcgi #AddHandler cgi-script .cgi #AddHandler fcgid-script .fcgi # Optionally, include *.conf files from /etc/apache2/conf.d/ # # For example, to allow execution of PHP scripts: # # Include /etc/apache2/conf.d/mod_php4.conf # # or, to include all configuration snippets added by packages: # Include /etc/apache2/conf.d/*.conf # # This should be changed to whatever you set DocumentRoot to. # <Directory "/srv/www/cms/public"> # # Possible values for the Options directive are "None", "All", # or any combination of: # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you. # # The Options directive is both complicated and important. Please see # http://httpd.apache.org/docs-2.2/mod/core.html#options # for more information. # Options -MultiViews # # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # Options FileInfo AuthConfig Limit # AllowOverride All # # Controls who can get stuff from this server. # Order allow,deny Allow from all </Directory> # If you don't want Rails to look in certain directories, # use the following rewrite rules so that Apache won't # rewrite certain requests # # Example: # RewriteCond %{REQUEST_URI} ^/notrails.* # RewriteRule .* - [L] # Redirect all requests not available on the filesystem to Rails # By default the cgi dispatcher is used which is very slow # # For better performance replace the dispatcher with the fastcgi one # # Example: # RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] #RewriteEngine On #RewriteLog "/var/log/apache2/test.example.com-rewrite.log" #RewriteLogLevel 3 # If your Rails application is accessed via an Alias directive, # then you MUST also set the RewriteBase in this htaccess file. # # Example: # Alias /myrailsapp /path/to/myrailsapp/public # RewriteBase /myrailsapp #RewriteRule ^$ index.html [QSA] #RewriteRule ^([^.]+)$ $1.html [QSA] #RewriteCond %{REQUEST_FILENAME} !-f #RewriteRule ^(.*)$ dispatch.cgi [QSA,L] #RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] # In case Rails experiences terminal errors # Instead of displaying this message you can supply a file here # which will be rendered instead # # Example: # ErrorDocument 500 /500.html #ErrorDocument 500 "<h2>Application error</h2>Rails application failed to start properly" </VirtualHost>
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor