On Apr 26, 12:37 am, Sean Corfield <
seancorfi...@gmail.com> wrote:
> Have Apache rewrite / block the regular path to the admin but let it
> remain available on the 'regular' path for your app server and just
> lock it down at the firewall level.
>
> You can also create another Apache vhost and have it listen on a
> 'strange' port and proxy via a 'strange' path to the admin. You can
> even give it a weird hostname and have the vhost listen on that, e.g.,
@Sean,
This is basically what I'm doing, but I didn't bother with the
separate vhost/port yet. I like the solution. Here's a sample vhost:
<VirtualHost *>
ServerName myhost
DocumentRoot /var/www/myhost/webroot
DirectoryIndex index.cfm index.html
<Proxy *>
Allow from 127.0.0.1
</Proxy>
ProxyPreserveHost On
ProxyPassReverse / ajp://myhost:8009/
RewriteEngine On
# Custom/app-specific rewrite rules would go here...
# Forbid public access to Railo admins:
RewriteRule ^/railo-context/admin/(.*) - [F]
# Proxy a hard-to-guess URL base to the Railo Admin base (could
also use a separate virtual host and put this on a non-standard port
and/or force SSL):
RewriteRule ^/some-secret-way-to-access-railo-context/admin/(.*)
ajp://%{HTTP_HOST}:8009/railo-context/admin/$1 [P]
# Proxy CFML requests to Tomcat:
RewriteRule ^/(.*\.cf[cm]/?.*)$ ajp://%{HTTP_HOST}:8009/$1 [P]
</VirtualHost>
You could also get rid of that rewrite rule that forbids the normal
admin URLs and use a global Location directive, like Todd mentioned:
<Location /railo-context/admin>
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Location>
> On Fri, Apr 24, 2009 at 6:34 AM, Todd Rafferty <
web...@gmail.com> wrote:
> > address is and using the "Allow" statement. My FiOS reassigns my ip
> > address every so often and I do use
dyndns.com, but I don't think that
> > apache will use the Allow from
whatever.dyndns.com -- I haven't tried
> > it tho.
@Todd,
I'm pretty sure you *can* do this, but it's *not* recommended.
Basically, there are some security loop holes or Apache could hang
while waiting on DNS resolution. Here's a summary from the Apache 2.2
docs:
http://httpd.apache.org/docs/2.2/dns-caveats.html
Best,
Jamie
On Apr 26, 12:37 am, Sean Corfield <
seancorfi...@gmail.com> wrote:
> What we did at MACR/ADBE was effectively method 2 - and it's what I
> used at Broadchoice as well.
>
> Have Apache rewrite / block the regular path to the admin but let it
> remain available on the 'regular' path for your app server and just
> lock it down at the firewall level.
>
> You can also create another Apache vhost and have it listen on a
> 'strange' port and proxy via a 'strange' path to the admin. You can
> even give it a weird hostname and have the vhost listen on that, e.g.,
>
>
http://railo-admin.mydomain.com:9610/wibble/admin.cfm
>
> (proxied to localhost:8080/railo-context/admin.cfm - and port 8080 not
> accessible outside the box)
>
> --
> Sean A Corfield -- (904) 302-SEAN
> CTO, Railo US --
http://getrailo.com/
> An Architect's View --
http://corfield.org/