Page 1 of 1

Viewing problem

PostPosted: 23. December 2009 15:54
by SA007
Well, in local host I can view it fine, but i have set it up so my router IP from external computers will redirect to my laptop's localhost.

However, external computers get an error saying computers out of my home network can't view my laptops localhost as permissons set in httpd-xampp.conf block them. It also says at the top #New Security Concept#

Please can I have help in how to edit the permissions so selected IP address can access my localhost through my router ip.

Re: Viewing problem

PostPosted: 23. December 2009 16:00
by Wiedmann
In which directory have you stored your own html/php files?

Re: Viewing problem

PostPosted: 24. December 2009 01:32
by SA007
In .hdocs there is the index file saying it works. I can get that, but anyone outside my home network gets this error:

Access forbidden!

New XAMPP security concept:

Access to the requested directory is only available from the local network.

This setting can be configured in the file "httpd-xampp.conf".

If you think this is a server error, please contact the webmaster.

Error 403

90.207.12.224
23/12/2009 12:42:48
Apache/2.2.12 (Win32) DAV/2 mod_ssl/2.2.12 OpenSSL/0.9.8k mod_autoindex_color PHP/5.3.0 mod_perl/2.0.4 Perl/v5.10.0

Re: Viewing problem

PostPosted: 24. December 2009 01:55
by Izzy
In your htdocs folder there should be 2 index files index.html which gives you the It Works! message and the other is the index.php file which redirects to a restricted folder htdocs\xampp.

So delete or rename both the index.php and the index.html files so they don't come into play, then replace with your own index.php or index.html file or put your web site files in the htdocs folder and things should work fine.

Then to get, once again, to the restricted XAMPP Welcome Demo Page simply type http://localhost/xampp/index.php in your browser.

This is the new security concept \xampp\apache\conf\extra\httpd-xampp.conf file kicking in which will only allow local users to access the restricted folders on your XAMPP installation for obvious reasons - you don't want everyone to have access to these sensitive files and folders to be able to do untold damage.

Re: Viewing problem

PostPosted: 24. December 2009 03:00
by SA007
Ah, so it was redirecting and therefore coughing up the error. Thanks guys.

Re: Viewing problem

PostPosted: 17. January 2010 00:34
by machpablo
I my name is pablo, and my new boss habe bought a new amazon server, and i install xampp in ubuntu os. I habe donde Izzi instructions but it doesn't work for me, please help!!!

Re: Viewing problem

PostPosted: 17. January 2010 00:53
by Izzy
machpablo wrote:...i install xampp in ubuntu os.
You posted in the wrong forum, this is XAMPP For Windows.

Try posting your full issue with all the details in the XAMPP For Linux forum here:
viewforum.php?f=17