Good day! Tell me the solution to the problem in Denwer: there is the main host blabla.com, the subdomain m.blabla.com is created. How to do it with the help of htaccess so that when requesting the m.blabla.com subdomain, files from the main domain are opened. Those. you need NOT a redirect to the domain, namely the uploading of files from the required domain.
1 answer
Found the solution: in the usr \ local \ apache \ conf \ httpd.conf file
<VirtualHost 127.0.0.1:80> DocumentRoot "Z:/home/blabla.com/www" ServerName "blabla.com" ServerAlias "*.blabla.com" ScriptAlias /cgi/ "/home/blabla.com/cgi/" ScriptAlias /cgi-bin/ "/home/blabla.com/cgi-bin/" </VirtualHost> and restart apache
|