Public or Not?

Problems with the Mac OS X version of XAMPP, questions, comments, and anything related.

Public or Not?

Postby ScottyBoy » 24. February 2011 07:31

If I install XAMPP on my Mac will the the public be able to access my server via IP address? I only want to have a developer environment, not a public site. BTW, I did search, but didn't want to go through 800+ pages of results.

Thanks, guys. :)
PDO For The Win!!!
User avatar
ScottyBoy
 
Posts: 14
Joined: 24. February 2011 07:24

Re: Public or Not?

Postby glitzi85 » 04. March 2011 23:55

If you have a router, then no. If not, then it might be possible, depending if you have an Firewall or not.
The simplest solution is to open the httpd.conf and replace
Code: Select all
Listen 80

with
Code: Select all
Listen 127.0.0.1:80

then even if you are connected directly to the internet nobody would be able to access your webserver.
Additional you could comment the Include command for the the httpd-ssl.conf at the end of the file (or replace the Listen 443 to Listen 127.0.0.1:443 in the httpd-ssl.conf file).
Also look into the my.cnf of MySQL and uncomment skip-networking, then MySQL is starting without IP support.

glitzi
User avatar
glitzi85
 
Posts: 1920
Joined: 05. March 2004 23:26
Location: Dahoim

Re: Public or Not?

Postby ScottyBoy » 06. March 2011 00:03

Thanks, dude. That's very helpful. :)
PDO For The Win!!!
User avatar
ScottyBoy
 
Posts: 14
Joined: 24. February 2011 07:24


Return to XAMPP for macOS

Who is online

Users browsing this forum: No registered users and 49 guests