New Virtualmin “subserver” (subdomain) returning 403 error

5 posts / 0 new
Last post
#1 Wed, 08/15/2018 - 11:12
cron

New Virtualmin “subserver” (subdomain) returning 403 error

  • I migrated a site from cPanel to Virtualmin and created a subserver under it.
  • I enabled DNS and apache website on the new subserver.
  • I uploaded files via FTP (using the main server's user account) into domain.com/domains/sub.domain.com and checked that permissions and ownership were set correctly on the files and directories (0750)
  • Yet, when I access sub.domain.com via a browser, I get:

    Forbidden You don't have permission to access / on this server.

    I do not have a .htaccess file in public_html. The error log simply says "AH01630: client denied by server configuration"

    Any ideas?

    Fri, 08/17/2018 - 08:55
    unborn
    unborn's picture

    hi - just upload some content to that public_html

    static site or wp should be fine..

    Configuring/troubleshooting Debian servers is always great fun

    Mon, 08/20/2018 - 04:03
    cron

    Thanks but I have an index.php file in the directory /home/domain.com/domains/sub.domain.com/public_html/ I also tried uploading a text file and accessing via sub.domain.com/test.txt.

    I still get a 403.

    Tue, 08/21/2018 - 11:00
    cron

    I manually edited httpd.conf and changed DocumentRoot from:

    /home/domain.com/domains/sub.domain.com/public_html/

    to

    /home/domain.com/public_html/sub/

    and it worked. It's not really what I wanted to have the subdomain as a subfolder of the main domain and it's a bit of a hack, but it's a workaround for the moment.

    Any ideas why this would be happening?

    Thu, 08/23/2018 - 12:28
    adamjedgar

    https://www.digitalocean.com/community/questions/how-do-i-add-sub-domain...

    Or perhaps you have a spelling mistake in the first configuration httpd.conf that isnt reflective of actual doc root for subdomain?

    AJECreative is the home of $5 webhosting, $15/month VPS servers (1cpu,1gb RAM, 25GB storage)
    Centos7, Debian9, or Ubuntu18LTS
    Available Control Panels = Centos-Webpanel, Cyberpanel, or Virtualmin

    https://ajecreative.com.au

    Topic locked