Custom subdomains

Kurogane

Verified User
Joined
Oct 6, 2019
Messages
65
I create a custom domain refer here


Apache config:
|*if SUB="subname"|
|?SDOCROOT=`HOME`/domains/`DOMAIN`/subdomains/`SUB`|
|*endif|

Good here, but the problem is with php still pointing to main docroot

Apache config:
    <Directory /home/user/domains/domain.com/public_html>
        <FilesMatch "\.(inc|php|phtml|phps|php70)$">
            <If "-f %{REQUEST_FILENAME}">
                #ProxyErrorOverride on
                AddHandler "proxy:unix:/usr/local/php70/sockets/putalocura.sock|fcgi://localhost" .inc .php .phtml .php70
            </If>
        </FilesMatch>
    </Directory>

How also change directory path too?
 
Already did that and i can't get to work.

Still not understand previous links
 
Back
Top