Answer the question
In order to leave comments, you need to log in
Apache setup?
Good afternoon, I turn to apache experts. Is it possible to somehow configure apache so that I create a folder with the host name, put all the files there (well, in extreme cases, I edited /etc/hosts) and my site took off.
Here's how OpenServer does it on Windows. Created a directory with files, threw in the database, restarted the server and everything is ready
Answer the question
In order to leave comments, you need to log in
<VirtualHost *:80>
ServerAlias *.example.com
VirtualDocumentRoot /var/www/%1/
</VirtualHost>
*.local
http://myNewDirectory.local
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question