Click to See Complete Forum and Search --> : Local Web Serving


Mikenell
12-13-2000, 07:10 PM
I want to setup a local web server, not accessable from the outside, just for me to use to test cgi scripts, php, and maybe mysql. I want to use apache, it that all I need to download? How can I tell if I already have it?
Thanks
Mikenell

Waffle_King
12-13-2000, 07:53 PM
do a "locate apache", you'll know
hell, just type "apache"

If you have a firewall running, you could block all requests to port 80, other than that, just look around some of the configs, maybe there is an option for only accepting local connections.
I don't know, I'm not that familiar with it.

klamath
12-13-2000, 10:37 PM
hell, just type "apache"

There's no such executable as 'apache'. Try, say, 'httpd' or 'apachectl'.

The config you're looking for is something along the lines of (untested):


<Directory />
Order Allow,Deny
Allow from 127.0.0.1
AllowOverride None
</Directory>


------------------
- Klamath
Get my GnuPG Key Here (http://klamath.dyndns.org/mykey.asc)
Looking for an open source project to contribute to? Check out the Better Bulletin Board (http://bbb.sourceforge.net)

Waffle_King
12-14-2000, 12:28 AM
bah, whatever

Mikenell
12-14-2000, 04:25 PM
Ok looks like I dont have it, I'll go download apache now.ThanksMikenell

Mikenell
12-15-2000, 02:11 PM
Ok, it turns out I do have Apache, but I had to run /var/lib/apache/sbin/httpd or apachectl and now I have it working, thanks, I just need to test if it allows outside connections.
Mikenell

Sweede
12-15-2000, 07:14 PM
BindAddress 192.168.0.*
is the proper way of doing it
this will allow anyone with an ip of
192.168.0.1-255 to access your server

klamath
12-15-2000, 10:53 PM
this will allow anyone with an ip of
192.168.0.1-255 to access your server

No it won't. Take a look @ the docs @ apache.org. BindAddress does something quite different.

------------------
- Klamath
Get my GnuPG Key Here (http://klamath.dyndns.org/mykey.asc)
Looking for an open source project to contribute to? Check out the Better Bulletin Board (http://bbb.sourceforge.net)