How to make a generic domain for all accounts instead of https://ip/~username~

As admin in menu "Server Manager" - "Administrator Settings" - 3. tab "Security Settings" - scroll down last line "Check domain owner for Subdomain creation" - put it off, if its on. Then you can add subdomains to users, for domains you own or have on the server.
 
Copy and modify the following templates to /usr/local/directadmin/data/templates/custom/:

Add your custom alias |USER|.mydomain.com:

For Apache/LiteSpeed:


- /usr/local/directadmin/data/templates/virtual_host2.conf
- /usr/local/directadmin/data/templates/virtual_host2_secure.conf

For NGINX:

- /usr/local/directadmin/data/templates/nginx_server.conf
- /usr/local/directadmin/data/templates/nginx_server_secure.conf

For DNS:

You will need to use a wildcard *.mydomain.com
 
Back
Top