I am trying to set up a virtual host using wamp
. Instructions I followed from this tutorial.
This is how I added directory
, VirtualHost
code to apache `httpd-vhosts.conf file.
<Directory C:/Users/myName/projects>
Order Deny,Allow
Allow from all
</Directory>
<VirtualHost *:8000>
DocumentRoot "C:/Users/myName/projects/myFirst"
ServerName mysite.local
</VirtualHost>
also I uncommented:
Include conf/extra/httpd-vhosts.conf
in httpd.conf
file.
But when I trying to open my webpage using my virtual servername its not going to mypage.
NOTE: I have changed default port to 8000
to access localhost server.
Localhost URL like this - http://localhost:8000/
UPDATES:
From apache-error.log
file:
[Mon Oct 26 17:48:12.935427 2015] [mpm_winnt:notice] [pid 5432:tid 384] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Mon Oct 26 17:48:15.196556 2015] [mpm_winnt:notice] [pid 3344:tid 308] AH00364: Child: All worker threads have exited.
[Mon Oct 26 17:48:18.216729 2015] [mpm_winnt:notice] [pid 5432:tid 384] AH00430: Parent: Child process 3344 exited successfully.
AH00112: Warning: DocumentRoot [C:/Apache24/docs/dummy-host.example.com] does not exist
AH00112: Warning: DocumentRoot [C:/Apache24/docs/dummy-host2.example.com] does not exist
[Mon Oct 26 17:48:31.249474 2015] [mpm_winnt:notice] [pid 3556:tid 400] AH00455: Apache/2.4.9 (Win32) PHP/5.5.12 configured -- resuming normal operations
[Mon Oct 26 17:48:31.249474 2015] [mpm_winnt:notice] [pid 3556:tid 400] AH00456: Apache Lounge VC11 Server built: Mar 16 2014 12:13:13
[Mon Oct 26 17:48:31.249474 2015] [core:notice] [pid 3556:tid 400] AH00094: Command line: 'c:\\wamp\\bin\\apache\\apache2.4.9\\bin\\httpd.exe -d C:/wamp/bin/apache/apache2.4.9'
[Mon Oct 26 17:48:31.252474 2015] [mpm_winnt:notice] [pid 3556:tid 400] AH00418: Parent: Created child process 3744
AH00112: Warning: DocumentRoot [C:/Apache24/docs/dummy-host.example.com] does not exist
AH00112: Warning: DocumentRoot [C:/Apache24/docs/dummy-host2.example.com] does not exist
AH00112: Warning: DocumentRoot [C:/Apache24/docs/dummy-host.example.com] does not exist
AH00112: Warning: DocumentRoot [C:/Apache24/docs/dummy-host2.example.com] does not exist
[Mon Oct 26 17:48:32.228530 2015] [mpm_winnt:notice] [pid 3744:tid 324] AH00354: Child: Starting 64 worker threads.
Can anybody tell me whats wrong with this?