I get this message
The server at reports can't be found, because the DNS lookup failed. DNS is the network service that translates a website's name to its Internet address. This error is most often caused by having no connection to the Internet or a misconfigured network. It can also be caused by an unresponsive DNS server or a firewall preventing Google Chrome from accessing the network.
and I have the following setup as virtual hosts in my XAMPP folder
C:\\xampp\\apache\\conf\\extra\\httpd-vhosts.conf
<VirtualHost *:80>
DocumentRoot "C:/xampp/htdocs"
ServerName localhost
ServerAlias localhost
<Directory "C:/xampp/htdocs">
AllowOverride All
Require local
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "C:\PeadInstalation\php\Paed\reports"
ServerName Reports
<Directory "C:\PeadInstalation\php\Paed\reports">
AllowOverride All
Require local
</Directory>
</VirtualHost>
and in my hosts file I have the following.
C:\\Windows\\System32\\drivers\\etc\\hosts
127.0.0.1 localhost
::1 localhost
127.0.0.1 Reports
::1 Reports
This setup has worked on 3 separate machines before we tried this one. This one how-ever gives me the message above.
I have cleared the cache of chrome as-well.
Any ideas please?
PS - Ive added WAMP tag as-well, because Ive tried in with WAMP also.
I am about to try this, but just need permission to restart the server afterwords.
Click windows button
type cmd --- on the shortcut, right click and Run as Admin
type ipconfig /flushdns press enter
click windows button --- Control panel under Network and Internet click > View network status and tasks upper left click change adapter settingsright click on your connection, Local area connection is if you're wired, > >Wireless Network Connection if wireless --- click Properties
click to highlight Internet Protocol Version 4
click Properties button
click Use the following DNS server addresses and in >the boxes type 208.67.222.222 as Preferred and 208.67.220.220 as Alternateclick OK, Close and close network connections
reboot your computer and try it. Those 2 things flushed all DNS entries in >your DNS cache and then we changed the default DNS servers to OpenDNS servers, some of the best out there. Report back what happens for you.--
Because all this is local to your PC changing DNS server should be irrelevant as you are not using them.
Just on the off chance that this PC has got its network stack panties in a bunch, try this, its not destructive but might reset things
Open a command prompt as Administrator
Run
netsh winsock reset
netsh winsock reset catalog
netsh int ip reset reset.log
netsh int ipv4 reset reset.log
netsh int ipv6 reset reset.log
ipconfig /flushdns
Reboot if necessary
Try apache again
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.