lucee / lucee-dockerfiles

Official Lucee Dockerfiles for Docker Hub build images
https://hub.docker.com/u/lucee/
MIT License
85 stars 50 forks source link

/lucee/admin return a 404 #37

Closed johnjarrard closed 7 years ago

johnjarrard commented 7 years ago

I've setup the Lucee_nginx51 docker exactly as described here but cannot get the admin site to load. The sample "Hello Cruel World!" index.cfm page load fine. I've altered the default.conf file as follow:

`location ~* /lucee/ {

allow 10.0.0.1;

allow all;
# deny all;

}`

Before I did that, I was getting a 403.

modius commented 7 years ago

The following block in the NGINX compound image is deliberately blocking access to the Admin for security reasons:

  location ~* /lucee/ {
    # allow 10.0.0.1; # Add your IP address here
    deny all; # block access
  }

If you need access to the Admin you will need to remove that entry. Do this by creating your own Dockerfile that extends the official lucee base image, and COPY in your own default.conf

For example:

FROM lucee/lucee4-nginx:4.5.5.006

# NGINX configs
COPY config/nginx/ /etc/nginx/

# Deploy codebase to container
COPY myprojectcode /var/www/
isapir commented 7 years ago

If you need access to the Admin you will need to remove that entry.

Or preferably, add your own IP or subnet with an allow directive.

silandrew commented 2 years ago

I want allow access to admin just from specific IP but when Ive added deny all and allow specific IPs , is bloking everything

block/ignore Lucee admin

location ~* /lucee/ {

return 404; # Lucee admin disabled (default/recommended)

 try_files @lucee @lucee; # Lucee admin enabled
allow 127.0.0.1; 
allow  x.x.x.x;
allow  x.x.x.x;
deny  all;
  }