limit access to XAMPP

Problems with the Linux version of XAMPP, questions, comments, and anything related.

limit access to XAMPP

Postby stijngielis » 10. February 2009 15:37

I've succesfully installed XAMPP on CentOS for intranet purposes. In "/opt/lampp/htdocs/" I've made a new folder (/opt/lampp/htdocs/intranet/) in which I'll put my files for the intranet.

Is it possible to limit acces to this folder (/opt/lampp/htdocs/intranet/) so only PC's with a IP-address within a specified range can access this folder?

E.g.:
the following pc's can access the folder:
192.168.1.5 - 192.168.1.35
192.168.1.100 - 192.168.1.150

Thanks in advance!
stijngielis
 
Posts: 6
Joined: 18. December 2008 10:38

Re: limit access to XAMPP

Postby Wiedmann » 10. February 2009 16:30

Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: limit access to XAMPP

Postby dmphotography » 20. February 2009 02:21

Also check out .htaccess files. You use the same directives that Wiedmann linked you to and they're really easy to use. Google tutorials on .htaccess files if you haven't already checked them out, because they're extremely useful and will also help you do what you're trying to do.

I recently discovered their potential after researching it for a tutorial I was writing on it.
For great video and written tutorials and guides on creating your own web server and installing things such as forums, blogs, etc., visit http://myownhomeserver.com
dmphotography
 
Posts: 191
Joined: 15. December 2008 14:25
Location: Columbus, MS
Operating System: Windows 7

Re: limit access to XAMPP

Postby stijngielis » 20. February 2009 06:48

Thanks for the tip.

However, I must say I did the job with .htaccess. :lol:
stijngielis
 
Posts: 6
Joined: 18. December 2008 10:38


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 3 guests