redirecting domains

Discussion in 'General' started by nhybgtvfr, Apr 19, 2017.

  1. nhybgtvfr

    nhybgtvfr Well-Known Member HowtoForge Supporter

    is it possible in ispconfig 3.1 to redirect a domain to another site, external or otherwise, without creating the folder structure for the domain being redirected?
    i know in the vhost config, you can use something like:
    <VirtualHost *:80>
    Redirect /

    so the documentroot and therefore the actual folders aren't required, but in ispconfig, if i add a website, if i use the redirect tab and add the redirect to, with no flag set, it still creates all the folders and files,
    since they're not needed, and all our sites are using shared storage for the website files, i'd rather not have all these unnecessary folders, files and symlinks cluttering up the /var/www area.

  2. till

    till Super Moderator Staff Member ISPConfig Developer

    ISPConfig always creates folders for a website.

    I do it like this on my servers, I always have a default website like '000default.tld' to catch all unrouted requests. If I want to forward a domain only, then I'll add that domain as alias domain to the default website and set the redirect on the redirect tab of the alias domain. This way, no additional folders were created.

Share This Page