Deny registration for an vhost

How do I block inband registration for an of two vhost?
I tried something like:

  register:
    - deny:
      - server: "support.mydomain"
    - allow:
      - server: "public.mydomain"

inside of access_rules
and something like:

host_config:
  "public.mydomain":
    access_rules:
      - register:
        - allow
  "support.mydomain":
    access_rules:
      - register:
        - deny

But none of these works, I can create accounts on both.

This works for me: hosts:

This works for me:

hosts:
  - "private.localhost"
  - "public.localhost"

acl:
  publicserver:
    server:
      - "public.localhost"
  privateserver:
    server:
      - "private.localhost"

access_rules:
  register:
    - deny: privateserver
    - allow: publicserver

modules:
  mod_register:
      access: register

Thanks it really worked for

Thanks it really worked for me

Syndicate content