Page 1 of 1

Why can only people on my Wi-Fi use my website?

Posted: Sun Aug 18, 2013 2:32 pm
by maggsyjake
Hi, I made a PHP document and I've also downloaded a LAMP Stack (that includes Apache 2, MYSQL and PHP 5). I placed my PHP document in the var/www/ folder and the website ran fine when I typed in: (myipaddress)/blog.php (the name of the document). However, when other people type in the same link into their browser, the server stops responding. How do I fix this?

Re: Why can only people on my Wi-Fi use my website?

Posted: Sun Aug 18, 2013 2:43 pm
by ddxfish
Need more info, what does "server stopped responding" mean? I would start by checking your httpd.conf file.

What does the "Listen" line say near the top? This binds apache to a specific IP address, OR all IP's. Here is mine:

Code: Select all

Listen 80
What does your NameVirtualHost section say? Heres mine:

Code: Select all

NameVirtualHost *:80
NameVirtualHost *:443
Also, What is your VirtualHost setup? Heres mine:

Code: Select all

<VirtualHost *:80>
        ServerAdmin xxx@xxx.us
        DocumentRoot /var/www/deepspaceradio.org/html
        ServerName www.deepspaceradio.org
</VirtualHost>
How is your network setup? ad-hoc? Pi as access point? Linksys router?

Re: Why can only people on my Wi-Fi use my website?

Posted: Sun Aug 18, 2013 7:23 pm
by SN
maggsyjake wrote:Hi, I made a PHP document and I've also downloaded a LAMP Stack (that includes Apache 2, MYSQL and PHP 5). I placed my PHP document in the var/www/ folder and the website ran fine when I typed in: (myipaddress)/blog.php (the name of the document). However, when other people type in the same link into their browser, the server stops responding. How do I fix this?
are you looking to have people NOT on your wifi (i.e. internet) access your site?
then you need to open some ports/routes on your router to allow traffic in. be aware that a) you'll need to give your users YOUR public IP address (not the interna; IP address you're using) b) it will probably change and c) you're open to hacking/abuse from internet baddies.