Skip to content

Instantly share code, notes, and snippets.

@cfmitrah
Last active January 27, 2017 10:14
Show Gist options
  • Save cfmitrah/2e00bf3a8cd65ddf2192 to your computer and use it in GitHub Desktop.
Save cfmitrah/2e00bf3a8cd65ddf2192 to your computer and use it in GitHub Desktop.
Install PresideCMS in Apache without CommandBox
// Reference : https://portal.netfusion.ch/kb/a19/konfiguration-presidecms.aspx
component extends="preside.system.config.Config" output=false {
public void function configure() output=false {
super.configure();
settings.preside_admin_path = "cmsadmin";
settings.system_user = "sysadmin";
settings.default_locale = "en";
settings.default_log_name = "presidecms";
settings.default_log_level = "information";
settings.sql_log_name = "presidecms";
settings.sql_log_level = "information";
settings.features.websiteUsers.enabled = true;
settings.features.updatemanager.enabled = false;
settings.dsn = "presidecms";
settings.autoSyncDB = true;
}
}
<VirtualHost *:80>
DocumentRoot "D:/projects/lucee/preside.lucee/www"
ServerName preside.lucee
RewriteEngine on
<Proxy *>
Order Allow,Deny
Allow from all
</Proxy>
ProxyPreserveHost On
# I have railo also in my machine, So my lucee AJP port is 8019, Yours might be 8009
ProxyPassReverse / ajp://%{HTTP_HOST}:8019/
# just proxy all request to Tomcat:
RewriteRule ^(.*)(/.*)?$ ajp://%{HTTP_HOST}:8019$1$2 [P]
</VirtualHost>
<!--- This URL scope dump will be used in step 2 to verify your Tuckey URL rewrite filter --->
<cfdump var="#url#" />
<!--- If you have multiple CFML engines configured with your Apache,
Please check whether this server dump showing the your Lucee version --->
<cfdump var="#server#" />
<Host name="preside.lucee" appBase="webapps">
<Context path="" docBase="D:/projects/lucee/preside.lucee/www" />
</Host>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE urlrewrite PUBLIC "-//tuckey.org//DTD UrlRewrite 4.0//EN"
"http://www.tuckey.org/res/dtds/urlrewrite4.0.dtd">
<urlrewrite>
<rule>
<from>/products/([0-9]+)</from>
<to>/index.cfm?product_id=$1</to>
</rule>
</urlrewrite>
@exhannibal
Copy link

Where do I put urlrewrite.xml? In WEB-INF/lucee ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment