title: the issue of local Apache can access the Internet can not be accessed
DATE: 2018-08-05 19:22:12
Tags: Web
---
When configuring apache and tomcat, they are configured, into the server found outside the network can not access
solve:
I, may be the firewall restrictions.
1, first start Apache, open a browser to access the specified path to success locally.
2, open the firewall settings in the control panel system, the Advanced Configuration.
3, in the advanced settings, right-click on the "Inbound Rules", select "New Rule."
4, in the rule-oriented, the type of election, "port", choose the protocol "TCP".
5, specify the local port number "80." (80 Apache configuration here's port number specified to be consistent)
6, the next "Operation" Select "allow connection" button.
7, "Profile" to select "domain, private, public" can be.
8, "Name" and "Description" custom, can recognize. Finally, save and exit.
9, without having to restart apache
II, it may be configured out of the question
May be configured does not allow external access, the server is Apache 2.4.0 or later, the virtual hosts as follows:
<VirtualHost *:80>
<Directory "C:/www">
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
ServerAdmin [email protected]
DocumentRoot "C:/www"
ServerName www.test.com
ServerAlias test.com
ErrorLog "logs/test.bin-error_log"
CustomLog "logs/test.bin-access_log" common
</VirtualHost>