maggsyjake
Posts: 4
Joined: Tue May 21, 2013 5:19 pm

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

Sun Aug 18, 2013 2:32 pm

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?

User avatar
ddxfish
Posts: 75
Joined: Wed Aug 07, 2013 5:17 pm
Location: Florida
Contact: Website AOL

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

Sun Aug 18, 2013 2:43 pm

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?
My Pi Guides: http://www.etcwiki.org/wiki/Category:Raspberry_Pi
My AIM screen name: ddxfish
Always happy to chat about the Pi!

User avatar
SN
Posts: 1014
Joined: Mon Feb 13, 2012 8:06 pm
Location: Romiley, UK
Contact: Website

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

Sun Aug 18, 2013 7:23 pm

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.
Steve N – binatone mk4->intellivision->zx81->spectrum->cbm64->cpc6128->520stfm->pc->raspi ?

Return to “Networking and servers”