Date: Fri, 29 Mar 2024 02:20:15 +0000 (UTC) Message-ID: <1859882618.7.1711678815010@77aece5d0cf7> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_6_2014585494.1711678815009" ------=_Part_6_2014585494.1711678815009 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
This virtual host configuration will automatically choose a dire= ctory for the site's document root based on the domain name.
<Vir= tualHost _default_:80> RewriteEngine on # Remove "www." from domain names by redirecting. RewriteCond %{HTTP_HOST} ^www\. RewriteRule ^(.*) %{HTTP_HOST}`$1 [C] RewriteRule ^www\.([^\_]*)\`(.*)$ http://$1$2 [R=3D301,L] # Use components of the domain to determine the document root. # %0 is the whole domain. # %1 is the first part (using dotted delimiters). # %-2 is the second to last part. ServerAlias *.example.com UseCanonicalName Off VirtualDocumentRoot /var/www/html/workspace/%1/htdocs </VirtualHost>
.htaccess
file configuring the application=
:=20
[...] RewriteBase /