Customizing the connector Dave way : Step 3

Dave Shuck in his post got a intersting section. Customize the connector. Reference link . That is great post. I follow that idea further and paste my terminal shots and procedures as described.

Now, customize Apache connector. Be sure about the present working directory at each command.
saffrongeek@saffrongeek-laptop:$ sudo gedit /etc/apache2/httpd.conf
Copy lines below starting with  #JRun
# JRun Settings
LoadModule jrun_module /opt/coldfusion8/runtime/lib/wsconfig/1/mod_jrun22.so
saffrongeek@saffrongeek-laptop:/etc/apache2/mods-available$ sudo gedit cf8.load


# JRun Settings
LoadModule jrun_module /opt/coldfusion8/runtime/lib/wsconfig/1/mod_jrun22.so


$ sudo gedit /etc/apache2/httpd.conf
Copy lines below

<IfModule mod_jrun22.c>
JRunConfig Verbose false
JRunConfig Apialloc false
JRunConfig Ignoresuffixmap false
JRunConfig Serverstore /opt/coldfusion8/runtime/lib/wsconfig/1/jrunserver.store
JRunConfig Bootstrap 127.0.0.1:51800
#JRunConfig Errorurl url <optionally redirect to this URL on errors>
#JRunConfig ProxyRetryInterval 600 <number of seconds to wait before trying to reconnect to unreachable clustered server>
#JRunConfig ConnectTimeout 15 <number of seconds to wait on a socket connect to a jrun server>
#JRunConfig RecvTimeout 300 <number of seconds to wait on a socket receive to a jrun server>
#JRunConfig SendTimeout 15 <number of seconds to wait on a socket send to a jrun server>
AddHandler jrun-handler .jsp .jws .cfm .cfml .cfc .cfr .cfswf
</IfModule>

saffrongeek@saffrongeek-laptop:~$ cd /etc/apache2/
saffrongeek@saffrongeek-laptop:/etc/apache2$ sudo gedit cf8connector
Paste and save.

$ sudo gedit /etc/apache2/httpd.conf and Add below line :-
DirectoryIndex index.cfm

saffrongeek@saffrongeek-laptop:~$ sudo gedit /etc/apache2/sites-available/cflocale
and Add ‘Include cf8connector’ to look like below:-

<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName cflocale
ServerAlias *.cflocale
DocumentRoot /home/saffrongeek/Projects/cflocale
Include cf8connector
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /home/saffrongeek/Projects/cflocale/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory “/usr/lib/cgi-bin”>
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>

ErrorLog /var/log/apache2/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog /var/log/apache2/access.log combined

Alias /doc/ “/usr/share/doc/”
<Directory “/usr/share/doc/”>
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>

</VirtualHost>

saffrongeek@saffrongeek-laptop:~$ sudo a2dissite cflocale
Site cflocale disabled.
Run ‘/etc/init.d/apache2 reload’ to activate new configuration!
saffrongeek@saffrongeek-laptop:~$ sudo a2ensite cflocale
Enabling site cflocale.
Run ‘/etc/init.d/apache2 reload’ to activate new configuration!
saffrongeek@saffrongeek-laptop:~$ sudo /etc/init.d/apache2 restart
* Restarting web server apache2                                                                                                                              … waiting                                                                                                                                          [ OK ]

||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

All works great!! Thanks..

||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

Other Good References:

Iknowkungfu : url

thecrumb : url

ubuntu forums : url

Advertisements

One Response to “Customizing the connector Dave way : Step 3”

  1. thank you man nice article.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: