Answer the question
In order to leave comments, you need to log in
How to properly configure apache2.conf?
There is a main site and a subdomain handler (the files of each subdomain are in a separate folder of the main domain), how to properly configure apache2.conf so that only html htm files are redirected to the handler, and static files are taken directly from the
folder folders, well, plus only index.html is taken, and if you specify another file, then a 500 error is issued
RewriteEngine On
RewriteCond %{HTTP_HOST} ^((.*)\.)site.com$
RewriteRule ^/(.*) /subd/%2/$1 [L]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question