I have Amazon AWS windows sever 2012 R2. I have installed Xammp, Now I want to make virtual hosts. I need If some body access IP like 52.10.221.200 then its should access blog C:/xampp/htdocs/blog, if some one access 52.10.221.200/new_blog then C:/xampp/htdocs.
I have maked virtual hosts like this.
<VirtualHost *:80>
DocumentRoot "C:/xampp/htdocs"
ServerName localhost
</VirtualHost>
<VirtualHost 52.10.221.200>
DocumentRoot "C:/xampp/htdocs/blog"
ServerName blog
# This should be omitted in the production environment
SetEnv APPLICATION_ENV development
#ErrorLog "logs/dummy-host2.example.com-error.log"
#CustomLog "logs/dummy-host2.example.com-access.log" common
</VirtualHost>
If I access 52.10.221.200, its working fine, I am able to access blog, But if I try to access 52.10.221.200/new_blog ( or any other directory), its not work. I am not able to access any other directory. Can you please help me how I can solve it? Thanks
Aucun commentaire:
Enregistrer un commentaire