Strange config issue

I’m using Virtualmin and thought I had things working fine until I put the website up.

I have a folder in webapps / / index.cfm – Hello World.

If I go to I get “Hello World”. All good.

However if I go to it defaults to webapps / root / index.cfm. This mean if I add any extension to the domain name the folder is not recognised. Any ideas please.

Here are the additions to Virtualhost in httpd.conf.

Update VirtualHost ipaddress:80>

DocumentRoot /opt/lucee/tomcat/webapps/

DirectoryIndex index.cfm index.html index.htm index.php index.php4 index.php5
<Directory /opt/lucee/tomcat/webapps/>

<Directory /opt/lucee/tomcat/webapps/>

#Added this above

RewriteEngine On
RewriteRule ^/lucee/admin/(.*) [R]

 ProxyRequests Off
<Proxy *>
  		Order deny,allow
  		Allow from all

  ProxyPass /
  ProxyPassReverse /

All good. Sorted it

Actually it was a bit of a work around. I’m sure there’s a better solution. I put a cflocation in the webapps/ so when people put the cflocation sent it to which pointed to home/ where I put the website files.

If you can thing of a better solution please let me know