Cannot access to web server via local IP address on UBUNTU 12.10

后端 未结 7 1458
无人及你
无人及你 2020-12-30 06:33

Recently I\'ve install Ubuntu 12.10 on my dev machine. also I\'ve installed apache 2.2 & Php 5.3.8 and Php 5.2.17 and MySQL. Everything works fine and I can browses my s

相关标签:
7条回答
  • 2020-12-30 07:06

    You should replace the listen line as shown below:

    Listen 0.0.0.0:80

    0 讨论(0)
  • 2020-12-30 07:08

    in my case i work on nestjs and previously i run my project on app.listen(3001) like this first i change to this app.listen(3001,'192.168.xx.xx')

    now i want to access my project on the another computer using ip on the network (LAN) so it is now allow us to access any particular port after ip address means if i access 192.198.xx.xx then i can access the address.

    but if i append port like this 192.198.xx.xx:3001 then it not let me allow to access ip address so in this case i resolve my problem by run following cmd

    1. sudo service ufw stop
    2. sudo iptables -nvL
    3. sudo iptables -nvL|less
    4. sudo iptables -F
    0 讨论(0)
  • 2020-12-30 07:09

    Windows Firewall did not have an exception for port 80. Somehow IIS worked fine, but would not allow Apache port 80. Even disabling the Windows Firewall Service did not allow it.

    Search Windows for "Firewall" and Create a new rule. Choose Port, enter 80, Call it: HTTP or whatever, Save. Restart Apache service.

    0 讨论(0)
  • 2020-12-30 07:23

    Perhaps your Apache is bounded to localhost only. Look in your Apache configuration file (httpd.conf) for

    Listen 127.0.0.1:80
    

    and replace it with:

    Listen 80
    

    or

    Listen *:80
    

    Also check the Firewall settings, look for a the line below in the same file:

    Allow from 127.0.0.1
    

    and try changing it to:

    Allow from all
    
    0 讨论(0)
  • 2020-12-30 07:27

    I add Directory tag:

                    Options Indexes FollowSymLinks
                    AllowOverride All
                    Require all granted
    
    0 讨论(0)
  • 2020-12-30 07:30

    Try:

    sudo ufw allow from 192.168.1.5
    
    0 讨论(0)
提交回复
热议问题