Answer the question
In order to leave comments, you need to log in
How to create virtual host outside DocumentRoot?
There is a default configured Apache.
DocumentRoot is registered in httpd.conf, for example,
/Users/user_name/server
Now I want to create a virtual host and go to httpd-vhosts.conf
and write there
<VirtualHost *:80>
ServerName test.localhost
ServerAlias test.localhost
VirtualDocumentRoot "/Users/user_name/some_folder"
DocumentRoot "/Users/user_name/some_folder"
</VirtualHost>
client denied by server configuration: /Users/user_name/some_folder/.htaccess
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