S
S
Sergey2014-10-31 12:22:20
Apache HTTP Server
Sergey, 2014-10-31 12:22:20

How to make subdomains refer to the main domain on denwer?

In Denver, by default, in order to create a subdomain, you need to create a new folder in the project, and then the corresponding entry appears in vhosts.conf. How can I make all subdomains point to the main site?
I tried to specify in the httpd.conf file:

<VirtualHost 127.0.0.1:80>
  DocumentRoot "Z:/home/test/www"  
  ServerName "test"
  ServerAlias "*.test"
  ScriptAlias /cgi/ "/home/test/cgi/"
  ScriptAlias /cgi-bin/ "/home/test/cgi-bin/"
</VirtualHost>

Did not help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Wolf, 2014-10-31
@mannaro

Everything is simple.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question