It cost me two hours looking for the solution , and at last I found it :
The Apache virtual hosts were working great then suddenly I cannot reach those virtual hosts , only the local host is working, It seems to be difficult to find the problem when you are very sure that your files are OK and you didn't touch any of them or change their contents. then who did that ? who did change the configuration files content.
To virtual hosts for Apache on windows you need three files : httpd.conf, httpd-vhosts.conf those located in the server folder and host file which is part of the windows system and located at the folder
/windows/system32/drivers/etc/host.
Some Applications can reach your host and change its content, even changing its security status like Microsoft updates.
This is what happened , the host file security was changed to be secured , So Apache cannot reach again unless you remove the security flag or Run Apache As Administrator.
The Apache virtual hosts were working great then suddenly I cannot reach those virtual hosts , only the local host is working, It seems to be difficult to find the problem when you are very sure that your files are OK and you didn't touch any of them or change their contents. then who did that ? who did change the configuration files content.
To virtual hosts for Apache on windows you need three files : httpd.conf, httpd-vhosts.conf those located in the server folder and host file which is part of the windows system and located at the folder
/windows/system32/drivers/etc/host.
Some Applications can reach your host and change its content, even changing its security status like Microsoft updates.
This is what happened , the host file security was changed to be secured , So Apache cannot reach again unless you remove the security flag or Run Apache As Administrator.
No comments:
Post a Comment