Page 1 of 1

Access forbidden

PostPosted: 14. November 2011 03:09
by junex13
Please Help me i access my data in localhost and 127.0.0.1 and my ip assign in my lan.. but my problem is when i open outside using my static ip the result is this

Access forbidden!

New XAMPP security concept:

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

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

Error 403

11/14/2011 9:05:23 AM
Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1

Re: Access forbidden

PostPosted: 14. November 2011 03:12
by Sharley
You will be able to access files and folders in the htdocs folder only, but not any XAMPP system files and folders including the xampp folder in the htdocs folder from your static IP.

You will not be able to access the XAMPP Welcome (Admin) page other than from the computer that XAMPP is installed on plus many other XAMPP system components.

You will be able to access a web site stored in the htdocs folder.

This a security protection method used to prevent possible attacks from outside your network.

Re: Access forbidden

PostPosted: 14. November 2011 03:33
by junex13
Sharley wrote:You will be able to access files and folders in the htdocs folder only, but not any XAMPP system files and folders including the xampp folder in the htdocs folder from your static IP.

You will not be able to access the XAMPP Welcome (Admin) page other than from the computer that XAMPP is installed on plus many other XAMPP system components.

You will be able to access a web site stored in the htdocs folder.

This a security protection method used to prevent possible attacks from outside your network.


Thanks for your reply but how can i see my index.html in htdocs i canot access it thru port forwarding thanks for your reply muah

Re: Access forbidden

PostPosted: 14. November 2011 03:36
by Sharley
Use a proxy so you can access from outside your PC or look to the DMZ settings in your router configuration - sorry I don't have a local network but there have been posts with the same issue as yours where you need to be familiar with how your router is configured.

Make sure that your ISP does not block port 80.

To access your website file try:
http://localhost/mywebsite/index.html if your web site is stored in mysite in the htdocs folder.

If that works then try using your IP:
http://xxx.xxx.xxx.xxx/mysite/index.html

Re: Access forbidden

PostPosted: 14. November 2011 03:42
by Altrea
junex13 wrote:Thanks for your reply but how can i see my index.html in htdocs i canot access it thru port forwarding thanks for your reply muah


.php files were served with higher priority than .html files, if you don't write a specific filename in your url.
http://localhost/index.html or http://your-ip-here/index.html should work.

Re: Access forbidden

PostPosted: 14. November 2011 03:44
by junex13
Sharley wrote:Use a proxy so you can access from outside your PC or look to the DMZ settings in your router configuration - sorry I don't have a local network but there have been posts with the same issue as yours where you need to be familiar with how your router is configured.

Make sure that your ISP does not block port 80.

To access your website file try:
http://localhost/mywebsite/index.html if your web site is stored in mysite in the htdocs folder.

If that works then try using your IP:
http://xxx.xxx.xxx.xxx/mysite/index.html



Ok thank you Very much for helping me.... have a nice day :D

Re: Access forbidden

PostPosted: 14. November 2011 03:49
by Sharley
Your welcome and please post back with details about how you managed to get it all working so it might help others searching for a solution to a similar problem. 8)

Thanks and best wishes. :)

Re: Access forbidden

PostPosted: 14. November 2011 04:07
by junex13
Altrea wrote:
junex13 wrote:Thanks for your reply but how can i see my index.html in htdocs i canot access it thru port forwarding thanks for your reply muah


.php files were served with higher priority than .html files, if you don't write a specific filename in your url.
http://localhost/index.html or http://your-ip-here/index.html should work.


Thanks for your help this is working --> http://localhost/index.html or http://your-ip-here/index.htm

but my problem is when i accessing outside thru my domain or ip of my ISP
this is the result

Access forbidden!

New XAMPP security concept:

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

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

btw i try to config my router again i think thats my fault thank so much helping :D

Re: Access forbidden

PostPosted: 14. November 2011 04:10
by Altrea
junex13 wrote:but my problem is when i accessing outside thru my domain or ip of my ISP
this is the result
[...]

Thats correct if you request the index.php file, because that is redirecting to your htdocs\xampp folder, which is protected by the security concept.
The index.html file is not protected by this security concept.

Re: Access forbidden

PostPosted: 14. November 2011 04:17
by Sharley
The httpd-xampp.conf file setting is, as I said, a protection setting which can be changed but will create very serious security for your computer.

Try putting your web site files (index.html) in a folder in the htdocs folder like I pointed out above and see if you can access the web site.


Try using a proxy server many of which can be found using Google or even a free VPN like Raptor
http://www.raptorvpn.com/whmcs/
then you can access without much trouble, as you will be bypassing your PC and coming back in from an outside location.

Best trying to solve the router or DMZ settings if you can.

Re: Access forbidden

PostPosted: 14. November 2011 04:23
by junex13
@ Sharley and Altrea thanks for your support more power AF God Bless

Re: Access forbidden

PostPosted: 14. November 2011 04:26
by Sharley
You're welcome. :D

Re: Access forbidden

PostPosted: 14. November 2011 09:52
by Sharley
Is everything working now as expected?

Can I close this topic now and mark it solved?