Welcome to the new Linux Foundation Forum!

A problem with creating VirtualHost Apache, please guide me....

edited August 2016 in New to Linux

Hello dear and honorable team,

I'm learning web designing and developing, and I'm a begineer. I have a server running apache 2.4.9 on windows, and I've set up a VirtualHost in the 'http.conf' file.

I've deleted my project's alias from Apache, in order to creat a VirtualHost. I entered 'Flushdns 'commands in the 'cmd'. and I have added a line  : 127.0.0.1 localhost and a line include of my domain like that, in 'host' file.

but, unfortunately when I connect to my 'domain', my project don't show in my browser!!!!!

these're my command in the 'http.conf' :

NameVirtualHost *:80



<VirtualHost *:80>

    DocumentRoot C:/dev/workspace/web/notes

    ServerName   notes.local

</VirtualHost>

<VirtualHost *:80>

    DocumentRoot C:/dev/workspace/web/notes

    ServerName   www.notes.local

</VirtualHost>

what am I doing wrong?!

please help me. I don't know what should I do! ...please guide me. 

/Thank you very much/

 

 

Sign In or Register to comment.