LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-20-2013, 07:49 PM   #1
jwhitworth
LQ Newbie
 
Registered: Jan 2013
Location: Missouri, United States
Posts: 6

Rep: Reputation: Disabled
Quick question in regards to local development and securing apache2


Hello all...I've just installed apache2,mysql,and php on my local linux mint machine for development purposes. The server is using localhost for the ip address and I have yet to configure anything else on this setup...it's virgin lol...My question to you is:
"Is it possible for someone else to navigate to this server across the web, and if so how would they go about doing it, and how could I stop (or potentially stop) this?"

I've had some experiance setting up servers remotely through ssh and have used xampp on a local windows environment for local development before, but this is the first time I've setup a local development environment on a linux box and am wanting to make sure I don't leave some hugely obvious security hole wide open...so I'm not a total noob, but I will admit to lacking a bit in some fundamental networking skills (programmer by profession lol).


Any replies are greatly appreciated guys/gals!
 
Old 02-20-2013, 09:08 PM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Code:
Order Allow,Deny
Deny from All
Allow from ip.add.res.s
in either your httpd.conf if you have access to it, or .htaccess in "your" DocumentRoot if you don't. Does not require restarting http daemon.

see http://corz.org/serv/tricks/htaccess.php

NOTE: I hope you have a router or similar, else, http may be "open" to the world "across the web"
The snippet will stop anyone NOT in allow from entry and can be CIDR addressing format as well.

Ask if you have more questions.

Last edited by Habitual; 02-20-2013 at 09:11 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Local virtual LAMP development server spescina Linux - Server 0 12-21-2012 12:44 PM
Qt Quick is buggy! App development! kalleanka Programming 1 06-26-2012 02:14 PM
Apache2 Local Subdomains miragej Linux - Server 8 06-22-2009 02:02 PM
apache2 local network problem HermanTheSheep Linux - Networking 4 12-07-2004 07:23 AM
Hi Everyone, quick apache2 question wolfwolf Linux - Networking 4 04-15-2003 11:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration