04.3 LTS.
我希望允许访问我的本地主机的其他设备。我的IP是192.168.1.249,apache服务器正在处理这些地址:
localhost/myapp
esolutions/myapp
192.168.1.249/myapp下面是我的默认配置:/etc/apache2/sites available/000default.conf
ServerName esolutions
ServerAdmin iheb@localhost
DocumentRoot /var/www/html
Options FollowSymLinks
Order deny,allow
AllowOverride All
allow from all
Require all granted
Options FollowSymLinks
AllowOverride None
allow from all
Order deny,allow
Require all granted
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined我的主机文件:
127.0.0.1 localhost
127.0.1.1 najda-PowerEdge-R430
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
192.168.1.249 esolutions请帮帮忙。
发布于 2019-09-24 12:30:40
解决方案是允许端口80上的通信量:
sudo ufw allow 'Apache'您可以通过键入以下内容来验证更改:
sudo ufw statushttps://askubuntu.com/questions/1175297
复制相似问题