Questo contenuto non è disponibile nella lingua selezionata.
13.4. Example openshift.conf.erb File
httpd
is a common base for OpenShift Enterprise cartridges. You can use this example conf.d/openshift.conf.erb
file as a starting point for writing a cartridge based on httpd
.
ServerRoot "<%= ENV['OPENSHIFT_HOMEDIR'] + "/ruby-1.8" %>" DocumentRoot "<%= ENV['OPENSHIFT_REPO_DIR'] + "/public" %>" Listen <%= ENV['OPENSHIFT_RUBY_IP'] + ':' + ENV['OPENSHIFT_RUBY_PORT'] %> User <%= ENV['OPENSHIFT_GEAR_UUID'] %> Group <%= ENV['OPENSHIFT_GEAR_UUID'] %> ErrorLog "|/usr/sbin/rotatelogs <%= ENV['OPENSHIFT_HOMEDIR']%>/ruby-1.8/logs/error_log-%Y%m%d-%H%M%S-%Z 86400" CustomLog "|/usr/sbin/rotatelogs <%= ENV['OPENSHIFT_HOMEDIR']%>/logs/access_log-%Y%m%d-%H%M%S-%Z 86400" combined PassengerUser <%= ENV['OPENSHIFT_GEAR_UUID'] %> PassengerPreStart http://<%= ENV['OPENSHIFT_RUBY_IP'] + ':' + ENV['OPENSHIFT_RUBY_PORT'] %>/ PassengerSpawnIPAddress <%= ENV['OPENSHIFT_RUBY_IP'] %> PassengerUseGlobalQueue off <Directory <%= ENV['OPENSHIFT_REPO_DIR]%>/public> AllowOverride all Options -MultiViews </Directory>