TLS and non-TLS Virtual Hosts Sharing Files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



If I have two virtual hosts using, say:

    DocumentRoot /web-sites/domain1.com/public
    DocumentRoot /web-sites/domain2.com/public

and one vhost is non-TLS and the other is TLS-only, can I allow them
to share common resources (such as css) by doing something like this
in the server section:

    Alias    /resources    /web-sites/common-public/resources
    <Directory  /web-sites/common-public/resources>
        Require all granted
    </Directory>

and then, inside file, say, /index.html, for either vhost, write:

  <link rel="stylesheet" href="resources/common.css" />

Thanks.

Best regards,

-Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx





[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux