Search results

  1. Kal

    How can I remove <Directory> directive from subdomain VirtualHost? (Custom HTTPD)

    I created a subdomain (sub1.domain.com) in DirectAdmin. I then added the following custom HTTPD config to point the subdomain to a directory in /var/www/html: |*if SUB="sub1"| |?SDOCROOT=/var/www/html/`SUB`| |?SERVER_ALIASES=`SERVER_ALIASES` sub2.`DOMAIN`| |*endif| It works as you might expect...
  2. Kal

    Custom ServerAlias missing from Let's Encrypt Certificate Entries

    I created a subdomain (sub1.domain.com) in DirectAdmin. I then added the following custom HTTPD config: |*if SUB="sub1"| |?SDOCROOT=/var/www/html/`SUB`| |?SERVER_ALIASES=`SERVER_ALIASES` sub2.`DOMAIN`| |*endif| So this accomplishes two things: Points the subdomain to the web app at...
  3. Kal

    Scary: Losing SSH access when /etc/passwd gets overwritten

    Since version 1.61.0, DirectAdmin advises that adding AllowUsers directives to /etc/ssh/sshd_config is redundant, as SSH access is managed in the /etc/passwd file. (See: No more AllowUsers in sshd_config.) So, following this advice, I went ahead and removed all the AllowUsers lines after making...
  4. Kal

    Exim painfully slow after system update

    I just did a dnf upgrade which was slightly overdue, and updated heaps of random stuff. I rebooted the server and everything seemed fine… except for exim. It was running like a sloth through molasses. Test messages would seem to never leave my mail client. I'd randomly get some connection errors...
  5. Kal

    How do I stop mail identified as spam getting deleted?

    In my personal account's SpamAssassin Setup, I had the spam deletion option set to: It seemed like a good idea at the time, but… well I'm quickly learning how many people (big companies even) have poorly configured SPF or DKIM (which is probably worse than no validation at all!), resulting in...
  6. Kal

    Should DirectAdmin use mod_alias for simple redirection from http to https?

    The 'Force SSL with https redirect' option currently creates a mod_rewrite rule in the user's VirtualHost directive for port 80. According to the Apache document, When not to use mod_rewrite, this isn't best practice. They recommend a simple Redirect using mod_alias. So instead of all this...
  7. Kal

    Custom webmail login page

    I've created a custom login page (just a simple, branded HTML form with username/email and password fields) for logging into DirectAdmin and other hosting services. It works great for everything except Roundcube. Plenty of people asking how to do this on the Roundcube forums, with answers...
  8. Kal

    Admin user cron jobs?

    I've written a little shell script that syncs backups to Amazon S3 storage. Now I want to run it daily. What's the best way to do this using the DA interface? I'd have thought I could set up a cron job from Admin level, but I can't see this option anywhere. If I switch to User level (admin...
  9. Kal

    Use this server to handle my e-mails (or not)

    To handle email externally, all you normally have to do is change a bunch of MX and related DNS records. You have to do this in DirectAdmin too of course, but then it also has this additional option: From a technical perspective, what does this option actually do? What happens if I change the...
  10. Kal

    Website testing before domain name delegation

    How do other people handle the situation where you want to let a client check their website before delegating their domain name to your name server? I think it's too much to ask clients to modify a hosts file on their PC, and I don't want to use the mod_userdir method, as it's considered a...
  11. Kal

    rsync 'Connection refused'

    I'm following these instructions to migrate an account from my old cPanel server to the new Direct Admin server. It's failing here: rsync -avt -e "ssh -p 12345" /home/user_backups/ root@host.mydomain.com:/home/admin/converted_user_backup/ This is the error message: SSH and rsync are...
  12. Kal

    DirectAdmin reporting incorrect storage space

    I've just installed DirectAdmin on a new server (CentOS 8), and successfully logged in. It's the first time I've ever installed or used DirectAdmin, but the installation all seemed to go smoothly. However, one of the first things I noticed is that DirectAdmin is reporting that the size of my...
  13. Kal

    Setting up a new VPS — looking for advice on server config and software stack

    Hi everyone. I'm new to DirectAdmin, and this is my first post here. For over 10 years I've managed a little VPS. We only host a dozen or so websites, running CentOS + Apache + cPanel. Most sites have extremely modest needs (using less than 1GB data), but we have one WordPress site that uses...
Top