K
K
Kirill Gorelov2021-06-03 09:37:20
Apache HTTP Server
Kirill Gorelov, 2021-06-03 09:37:20

How to set up a domain for a folder?

Question, locally set up a domain on xamppe

<VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot "/opt/lampp/htdocs/caprise"
    ServerName caprise-loc.ru
    ErrorLog "logs/caprise.log"
    CustomLog "logs/caprise.log" common
</VirtualHost>


Now I need to configure the `test.caprise-loc.ru` domain, but what would it look like in the root folder `caprise-loc.ru/test`
I know that you can not deploy a separate subdomain, but make ServerAlias, this is also not a problem but I don’t understand how to specify that it would go to the / test folder .....

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question