Computer Hope

Software => BSD, Linux, and Unix => Topic started by: TheWaffle on February 01, 2016, 08:33:27 PM

Title: Cannot connect to apache2 using hostname from other devices
Post by: TheWaffle on February 01, 2016, 08:33:27 PM
So I have lamp running on my desktop. I cannot connect to it from my phone unless I use its ip rather than its hostname.
http://hostname
doesn't work but
192.168.2.15 does.
Any ideas?
I think my iptables are screwed up buy idk.
Title: Re: Cannot connect to apache2 using hostname from other devices
Post by: Geek-9pm on February 01, 2016, 10:21:04 PM
Why is it a problem? You got it to work.
I think I know how to fix this, but you will get better support from the Apache users.  Check around on either the Ubuntu chat room or on of the many Apache groups.
Try this:
http://www.apachelounge.com/
or
http://httpd.apache.org/docs/2.0/faq/support.html

The link below might be helpful if you already have some knowledge of Apache and are using either Debian or Ubuntu.
https://www.rackspace.com/knowledge_center/article/set-up-apache-virtual-hosts-on-ubuntu

Hope that is of some help.   :)