Hi,
Do you read completely answers that you are doing? Do you read completely explanatory tutorials?
ALL THAT have already been given to you!
We are not here to do the work for you. Read, reread, repeatedly if necessary, and apply! But apply EXACTLY as you are told to do and not like you want to do it depended on the explanations given.
- 1 - You should not put files in wamp/www/
- 2 - The content of wamp/www/ must not be changed, except to add folders.
- 3 - C:/wamp/www/ IS ONLY localhost and nothing else.
- 4 - Do not add log and other changes in VirtualHost before it works.
- 5 - YOU NEED hosts file. It is definitely not reserved for local use.
httpd-vhost.conf file
<VirtualHost *:80>
DocumentRoot "c:/wamp/www"
ServerName localhost
<Directory "c:/wamp/www">
AllowOverride All
Require local
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "c:/wamp/www/my-dir"
ServerName filma-24.com
ServerAlias www.filma-24.com
<Directory "c:/wamp/www/my-dir">
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "c:/wamp/vovost.ru/www"
ServerName vovost.ru
ServerAlias www.vovost.ru
<Directory "c:/wamp/vovost.ru/www">
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
and, in the file c:\windows\system32\drivers\etc\hosts
127.0.0.1 localhost
127.0.0.1 filma-24.com
127.0.0.1 vovost.ru
::1 localhost
::1 filma-24.com
::1 vovost.ru
If you want subdomain, you add it in httpd-vhost.conf, like this
<VirtualHost *:80>
DocumentRoot "c:/wamp/another-dir/www"
ServerName subdomain.vovost.ru
ServerAlias www.subdomain.vovost.ru
<Directory "c:/wamp/another-dir/www">
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
and in the file c:\windows\system32\drivers\etc\hosts
127.0.0.1 localhost
127.0.0.1 filma-24.com
127.0.0.1 vovost.ru subdomain.vovost.ru
::1 localhost
::1 filma-24.com
::1 vovost.ru subdomain.vovost.ru
Nota : (http://www.filma-24.com/) and (http://filma-24.com/) are real websites, so it is a very bad idea to use the same domain names.
In addition, it is a site that violates copyright, so: This will be my last answer and I close this discussion
---------------------------------------------------------------
Documentation Apache -
Documentation PHP -
Documentation MySQL -
Wampserver install files & addonsEdited 2 time(s). Last edit at 07/15/2015 05:44PM by Otomatic.